diff options
| author | Guido van Rossum <guido@python.org> | 2001-04-10 15:37:12 (GMT) |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2001-04-10 15:37:12 (GMT) |
| commit | 9c673f35d2f420ebcc8bc6e5c7f946722d4329aa (patch) | |
| tree | c6d1fde0d653a27e54f784d419415aa17625ab10 /Lib/zipfile.py | |
| parent | 90a72f8dcd0983d92d3740e332e80fc195da1d5b (diff) | |
| download | cpython-9c673f35d2f420ebcc8bc6e5c7f946722d4329aa.zip cpython-9c673f35d2f420ebcc8bc6e5c7f946722d4329aa.tar.gz cpython-9c673f35d2f420ebcc8bc6e5c7f946722d4329aa.tar.bz2 | |
Try an except: after an import into "except ImportError".
This came out of SF bug #411881.
Note that there's another unqualified except: still.
Diffstat (limited to 'Lib/zipfile.py')
| -rw-r--r-- | Lib/zipfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
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", |
