Browse Source

bpo-39830: Add zipfile.Path to __all__ (GH-19115)

pull/19120/head
Zackery Spytz 6 years ago
committed by GitHub
parent
commit
9a81ab107a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Lib/zipfile.py
  2. 1
      Misc/NEWS.d/next/Library/2020-03-23-05-21-13.bpo-39830.IkqU1Y.rst

3
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

1
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.
Loading…
Cancel
Save