diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 508e4ae..4db1291 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,13 +8,13 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 23.1.0 hooks: - id: black language_version: python3 files: ^maubot/.*\.pyi?$ - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort files: ^maubot/.*\.pyi?$ diff --git a/maubot/lib/zipimport.py b/maubot/lib/zipimport.py index 963f14f..e7b77db 100644 --- a/maubot/lib/zipimport.py +++ b/maubot/lib/zipimport.py @@ -323,6 +323,7 @@ _zip_searchorder = ( (".py", False, False), ) + # Given a module name, return the potential file path in the # archive (without extension). def _get_module_path(self, fullname): @@ -351,6 +352,7 @@ def _get_module_info(self, fullname): # implementation + # _read_directory(archive) -> files dict (new reference) # # Given a path to a Zip archive, build a dict, mapping file names @@ -524,6 +526,7 @@ cp437_table = ( _importing_zlib = False + # Return the zlib.decompress function object, or NULL if zlib couldn't # be imported. The function is cached when found, so subsequent calls # don't import zlib again.