Skip to content

Commit

Permalink
when writing zip64 header pack format must be bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
kouk committed Jun 20, 2014
1 parent 1663831 commit 2ef6a0b
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 2ef6a0b

Please sign in to comment.