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:
Guido van Rossum 2001-04-10 15:37:12 +00:00
parent 90a72f8dcd
commit 9c673f35d2
1 changed files with 1 additions and 1 deletions

View File

@ -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",