commit | 8ca162f417c6a72faf02831457b4054a73087b78 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sun Apr 07 06:36:23 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Sun Apr 07 06:36:23 2002 +0000 |
tree | 2d882f9a1fe596830f47f1132a5294633ba05f33 | |
parent | b8bff3f4a9e3be8b43a394d3795a46af2831fe5e [diff] [blame] |
Partial introduction of bools where appropriate.
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 0efcad3..4e7ea10 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py
@@ -83,9 +83,10 @@ endrec = fpin.read() fpin.close() if endrec[0:4] == "PK\005\006" and endrec[-2:] == "\000\000": - return 1 # file has correct magic number + return True # file has correct magic number except IOError: pass + return False class ZipInfo: