From: Fred Drake Date: Fri, 11 May 2001 19:52:57 +0000 (+0000) Subject: Fix one bare except: clause. X-Git-Tag: v2.2a3~1803 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e473800c31e650ad573e5af21a6ed63e155c2f6;p=thirdparty%2FPython%2Fcpython.git Fix one bare except: clause. --- diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 74095e250921..8a113a0fe106 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -81,7 +81,7 @@ def is_zipfile(filename): fpin.close() if endrec[0:4] == "PK\005\006" and endrec[-2:] == "\000\000": return 1 # file has correct magic number - except: + except IOError: pass