commit | 9c673f35d2f420ebcc8bc6e5c7f946722d4329aa | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Apr 10 15:37:12 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Apr 10 15:37:12 2001 +0000 |
tree | c6d1fde0d653a27e54f784d419415aa17625ab10 | |
parent | 90a72f8dcd0983d92d3740e332e80fc195da1d5b [diff] |
Try an except: after an import into "except ImportError". This came out of SF bug #411881. Note that there's another unqualified except: still.
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 5dedc1b..6a7641f 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py
@@ -7,7 +7,7 @@ try: import zlib # We may need its compression method -except: +except ImportError: zlib = None __all__ = ["BadZipfile", "error", "ZIP_STORED", "ZIP_DEFLATED", "is_zipfile",