Skip to content

Commit 5629805

Browse files
committed
Change some hard-coded parameters
1 parent 111ff1f commit 5629805

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

utils/create_xpi_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ def constructZipDet():
4949
info.date_time = time.gmtime(1378343307)
5050
info.create_system = 3 # aka, UNIX
5151
info.create_version = 20
52+
info.external_attr = 0600 << 16
5253
info.extract_version = 20
54+
info.file_size = long(info.file_size) # is int on some OS's
5355
xpiFile.writestr(info, '')
5456

5557
constructZipDet()

utils/zipfile2_6.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def readline(self, size = -1):
511511
read a whole line.
512512
"""
513513
if size < 0:
514-
size = sys.maxint
514+
size = 2147483647
515515
elif size == 0:
516516
return ''
517517

0 commit comments

Comments
 (0)