Skip to content

Commit b252431

Browse files
committed
fix: drop useless code in zipimport
Signed-off-by: yihong0618 <[email protected]>
1 parent 790cdae commit b252431

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/zipimport.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import _imp # for check_hash_based_pycs
1919
import _io # for open
2020
import marshal # for loads
21-
import sys # for modules
2221
import time # for mktime
2322

2423
__all__ = ['ZipImportError', 'zipimporter']
@@ -34,8 +33,6 @@ class ZipImportError(ImportError):
3433
# _read_directory() cache
3534
_zip_directory_cache = {}
3635

37-
_module_type = type(sys)
38-
3936
END_CENTRAL_DIR_SIZE = 22
4037
END_CENTRAL_DIR_SIZE_64 = 56
4138
END_CENTRAL_DIR_LOCATOR_SIZE_64 = 20

0 commit comments

Comments
 (0)