https://github.com/python/cpython/commit/d467f24d0f886b8a76944726eb46bf0e3bb667a8
commit: d467f24d0f886b8a76944726eb46bf0e3bb667a8
branch: main
author: yihong <[email protected]>
committer: brettcannon <[email protected]>
date: 2025-10-20T19:43:10Z
summary:

gh-133656: Remove unused import and private global in `Lib/zipimport.py` 
(GH-140325)

files:
M Lib/zipimport.py

diff --git a/Lib/zipimport.py b/Lib/zipimport.py
index 188c4bca97798d..340a7e07112504 100644
--- a/Lib/zipimport.py
+++ b/Lib/zipimport.py
@@ -10,15 +10,12 @@
 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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to