Skip to content

Commit

Permalink
Merge pull request SpiderOak#3 from longaccess/zip64pack
Browse files Browse the repository at this point in the history
when writing zip64 header pack format must be bytes
  • Loading branch information
allanlei committed Jun 20, 2014
2 parents 1663831 + 2ef6a0b commit a54ed6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zipstream/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def FileHeader(self, zip64=None):
if zip64 is None:
zip64 = file_size > ZIP64_LIMIT or compress_size > ZIP64_LIMIT
if zip64:
fmt = '<HHQQ'
fmt = b'<HHQQ'
extra = extra + struct.pack(fmt,
1, struct.calcsize(fmt)-4, file_size, compress_size)
if file_size > ZIP64_LIMIT or compress_size > ZIP64_LIMIT:
Expand Down

0 comments on commit a54ed6a

Please sign in to comment.