summaryrefslogtreecommitdiffstats
path: root/Lib/zipfile.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-05-11 19:52:57 (GMT)
committerFred Drake <fdrake@acm.org>2001-05-11 19:52:57 (GMT)
commit7e473800c31e650ad573e5af21a6ed63e155c2f6 (patch)
treef98557602e0f5aeeb4fa173bdfb8da9d1de853c9 /Lib/zipfile.py
parentef4cdad0905c55d921d899cb8b91e58ec6beeb80 (diff)
downloadcpython-7e473800c31e650ad573e5af21a6ed63e155c2f6.zip
cpython-7e473800c31e650ad573e5af21a6ed63e155c2f6.tar.gz
cpython-7e473800c31e650ad573e5af21a6ed63e155c2f6.tar.bz2
Fix one bare except: clause.
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r--Lib/zipfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py
index 74095e2..8a113a0 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