mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Partial introduction of bools where appropriate.
This commit is contained in:
parent
b8bff3f4a9
commit
8ca162f417
18 changed files with 96 additions and 94 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue