From 9c673f35d2f420ebcc8bc6e5c7f946722d4329aa Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 10 Apr 2001 15:37:12 +0000 Subject: Try an except: after an import into "except ImportError". This came out of SF bug #411881. Note that there's another unqualified except: still. --- Lib/zipfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ import binascii try: import zlib # We may need its compression method -except: +except ImportError: zlib = None __all__ = ["BadZipfile", "error", "ZIP_STORED", "ZIP_DEFLATED", "is_zipfile", -- cgit v0.12