diff options
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r-- | Lib/zipfile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 0efcad3a8a..4e7ea10581 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -83,9 +83,10 @@ def is_zipfile(filename): 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: |