summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-05-26 06:44:57 (GMT)
committerGitHub <noreply@github.com>2020-05-26 06:44:57 (GMT)
commit5c1d745da5e1166a8724b619060165dcf3949e93 (patch)
tree04949e4aea6fb4374de851d1e20ee6c278397105
parentb38bd8888a6e90741a989db2fe321e8b98d5a5c4 (diff)
downloadcpython-5c1d745da5e1166a8724b619060165dcf3949e93.zip
cpython-5c1d745da5e1166a8724b619060165dcf3949e93.tar.gz
cpython-5c1d745da5e1166a8724b619060165dcf3949e93.tar.bz2
bpo-39830: Add zipfile.Path to __all__ (GH-19115) (GH-19116)
(cherry picked from commit 9a81ab107a54b8ca320fb703f7c68e14ccd9d016) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Zackery Spytz <zspytz@gmail.com>
-rw-r--r--Lib/zipfile.py3
-rw-r--r--Misc/NEWS.d/next/Library/2020-03-23-05-21-13.bpo-39830.IkqU1Y.rst1
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py
index 07faacc..f7a2a2e 100644
--- a/Lib/zipfile.py
+++ b/Lib/zipfile.py
@@ -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
index 0000000..fc9c650
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-03-23-05-21-13.bpo-39830.IkqU1Y.rst
@@ -0,0 +1 @@
+Add :class:`zipfile.Path` to ``__all__`` in the :mod:`zipfile` module.