From a1b8ddf452364429c13e853930fb9c93243465b3 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Mon, 13 May 2024 21:45:24 +0100 Subject: [PATCH 1/2] remove reference to removed zipimporter._files attribute in module docstring --- Lib/zipimport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/zipimport.py b/Lib/zipimport.py index 4e41d109865e85..392d1c31c6b48a 100644 --- a/Lib/zipimport.py +++ b/Lib/zipimport.py @@ -5,7 +5,7 @@ - ZipImportError: exception raised by zipimporter objects. It's a subclass of ImportError, so it can be caught as ImportError, too. - _zip_directory_cache: a dict, mapping archive paths to zip directory - info dicts, as used in zipimporter._files. + info dicts, as used in zipimporter. It is usually not needed to use the zipimport module explicitly; it is used by the builtin import mechanism for sys.path items that are paths From 051bbc6ebfc22ec666fb8f377c37e9650bc7c7b9 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 15 May 2024 10:59:38 +0100 Subject: [PATCH 2/2] remove reference to private _zip_directory_cache --- Lib/zipimport.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/zipimport.py b/Lib/zipimport.py index 392d1c31c6b48a..a49a21f0799df2 100644 --- a/Lib/zipimport.py +++ b/Lib/zipimport.py @@ -1,11 +1,9 @@ """zipimport provides support for importing Python modules from Zip archives. -This module exports three objects: +This module exports two objects: - zipimporter: a class; its constructor takes a path to a Zip archive. - ZipImportError: exception raised by zipimporter objects. It's a subclass of ImportError, so it can be caught as ImportError, too. -- _zip_directory_cache: a dict, mapping archive paths to zip directory - info dicts, as used in zipimporter. It is usually not needed to use the zipimport module explicitly; it is used by the builtin import mechanism for sys.path items that are paths