mirror of https://github.com/python/cpython
Try an except: after an import into "except ImportError".
This came out of SF bug #411881. Note that there's another unqualified except: still.
This commit is contained in:
parent
90a72f8dcd
commit
9c673f35d2
|
@ -7,7 +7,7 @@ import binascii
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import zlib # We may need its compression method
|
import zlib # We may need its compression method
|
||||||
except:
|
except ImportError:
|
||||||
zlib = None
|
zlib = None
|
||||||
|
|
||||||
__all__ = ["BadZipfile", "error", "ZIP_STORED", "ZIP_DEFLATED", "is_zipfile",
|
__all__ = ["BadZipfile", "error", "ZIP_STORED", "ZIP_DEFLATED", "is_zipfile",
|
||||||
|
|
Loading…
Reference in New Issue