From fe4884f2350020f2267dd4e8aff17e9aa482ca4b Mon Sep 17 00:00:00 2001 From: dramforever Date: Mon, 20 Nov 2023 18:34:17 +0800 Subject: [PATCH] nix-channels: '...' -> b'...' when dealing with paths --- nix-channels.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nix-channels.py b/nix-channels.py index 5efe85b..5b82c6c 100755 --- a/nix-channels.py +++ b/nix-channels.py @@ -298,8 +298,8 @@ def update_channels(channels): paths = [ path for path in paths - if 'texlive-2022-env-man' not in path - and 'texlive-2022-env-info' not in path + if b'texlive-2022-env-man' not in path + and b'texlive-2022-env-info' not in path ] # Batch paths to avoid E2BIG @@ -409,8 +409,8 @@ def garbage_collect(): paths = [ path for path in paths - if 'texlive-2022-env-man' not in path - and 'texlive-2022-env-info' not in path + if b'texlive-2022-env-man' not in path + and b'texlive-2022-env-info' not in path ] for i in range(0, len(paths), PATH_BATCH):