]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39830: Add zipfile.Path to __all__ (GH-19115) (GH-19116)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 26 May 2020 06:44:57 +0000 (23:44 -0700)
committerGitHub <noreply@github.com>
Tue, 26 May 2020 06:44:57 +0000 (02:44 -0400)
(cherry picked from commit 9a81ab107a54b8ca320fb703f7c68e14ccd9d016)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Lib/zipfile.py
Misc/NEWS.d/next/Library/2020-03-23-05-21-13.bpo-39830.IkqU1Y.rst [new file with mode: 0644]

index 07faaccac9226174d82794ba7d332f9b8429b347..f7a2a2e8b8ab9a91b62df1d8e2dfb92a8ebafa99 100644 (file)
@@ -37,7 +37,8 @@ except ImportError:
 
 __all__ = ["BadZipFile", "BadZipfile", "error",
            "ZIP_STORED", "ZIP_DEFLATED", "ZIP_BZIP2", "ZIP_LZMA",
-           "is_zipfile", "ZipInfo", "ZipFile", "PyZipFile", "LargeZipFile"]
+           "is_zipfile", "ZipInfo", "ZipFile", "PyZipFile", "LargeZipFile",
+           "Path"]
 
 class BadZipFile(Exception):
     pass
diff --git a/Misc/NEWS.d/next/Library/2020-03-23-05-21-13.bpo-39830.IkqU1Y.rst b/Misc/NEWS.d/next/Library/2020-03-23-05-21-13.bpo-39830.IkqU1Y.rst
new file mode 100644 (file)
index 0000000..fc9c650
--- /dev/null
@@ -0,0 +1 @@
+Add :class:`zipfile.Path` to ``__all__`` in the :mod:`zipfile` module.