]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133656: Remove unused import and private global in `Lib/zipimport.py` (GH-140325)
authoryihong <zouzou0208@gmail.com>
Mon, 20 Oct 2025 19:43:10 +0000 (03:43 +0800)
committerGitHub <noreply@github.com>
Mon, 20 Oct 2025 19:43:10 +0000 (19:43 +0000)
Lib/zipimport.py

index 188c4bca97798d18dbd8c8f441b9dc981a58fbef..340a7e071125046390f4a322773d669df02696a6 100644 (file)
@@ -10,15 +10,12 @@ used by the builtin import mechanism for sys.path items that are paths
 to Zip archives.
 """
 
-#from importlib import _bootstrap_external
-#from importlib import _bootstrap  # for _verbose_message
 import _frozen_importlib_external as _bootstrap_external
 from _frozen_importlib_external import _unpack_uint16, _unpack_uint32, _unpack_uint64
 import _frozen_importlib as _bootstrap  # for _verbose_message
 import _imp  # for check_hash_based_pycs
 import _io  # for open
 import marshal  # for loads
-import sys  # for modules
 import time  # for mktime
 
 __all__ = ['ZipImportError', 'zipimporter']
@@ -34,8 +31,6 @@ class ZipImportError(ImportError):
 # _read_directory() cache
 _zip_directory_cache = {}
 
-_module_type = type(sys)
-
 END_CENTRAL_DIR_SIZE = 22
 END_CENTRAL_DIR_SIZE_64 = 56
 END_CENTRAL_DIR_LOCATOR_SIZE_64 = 20