diff options
author | Brett Cannon <brett@python.org> | 2013-07-04 22:16:15 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-07-04 22:16:15 (GMT) |
commit | 260fbe80c5bd3611ae9e896a3c4714527667aece (patch) | |
tree | aa4e3e522edf2af312a256702b8f43769faab2e0 /Lib/zipfile.py | |
parent | 3dfd23245be19ff95cf50fe93c428dabf2ff90e7 (diff) | |
download | cpython-260fbe80c5bd3611ae9e896a3c4714527667aece.zip cpython-260fbe80c5bd3611ae9e896a3c4714527667aece.tar.gz cpython-260fbe80c5bd3611ae9e896a3c4714527667aece.tar.bz2 |
Issue #15767: Excise the remaining instances of ModuleNotFoundError
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r-- | Lib/zipfile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 4099930..7d6591f 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -18,18 +18,18 @@ import binascii try: import zlib # We may need its compression method crc32 = zlib.crc32 -except ModuleNotFoundError: +except ImportError: zlib = None crc32 = binascii.crc32 try: import bz2 # We may need its compression method -except ModuleNotFoundError: +except ImportError: bz2 = None try: import lzma # We may need its compression method -except ModuleNotFoundError: +except ImportError: lzma = None __all__ = ["BadZipFile", "BadZipfile", "error", |