From c17ce4892ecdb4e11437bc2785d132bd8100eaec Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 31 Jul 2025 08:32:52 +0000 Subject: [PATCH] fix pkgres on older python3 versions --- copyparty/util.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/copyparty/util.py b/copyparty/util.py index d081378a..73284bbb 100644 --- a/copyparty/util.py +++ b/copyparty/util.py @@ -4200,8 +4200,6 @@ def load_resource(E: EnvParams, name: str, mode="rb") -> IO[bytes]: ap = os.path.join(E.mod, name) if PY2: - import codecs - return codecs.open(ap, "r", encoding=enc) # type: ignore return open(ap, mode, encoding=enc)