Skip to content

Commit c17ce48

Browse files
committed
fix pkgres on older python3 versions
1 parent 5df2cbe commit c17ce48

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

copyparty/util.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4200,8 +4200,6 @@ def load_resource(E: EnvParams, name: str, mode="rb") -> IO[bytes]:
42004200
ap = os.path.join(E.mod, name)
42014201

42024202
if PY2:
4203-
import codecs
4204-
42054203
return codecs.open(ap, "r", encoding=enc) # type: ignore
42064204

42074205
return open(ap, mode, encoding=enc)

0 commit comments

Comments
 (0)