Skip to content

Commit a54ed6a

Browse files
committed
Merge pull request #3 from longaccess/zip64pack
when writing zip64 header pack format must be bytes
2 parents 1663831 + 2ef6a0b commit a54ed6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zipstream/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def FileHeader(self, zip64=None):
116116
if zip64 is None:
117117
zip64 = file_size > ZIP64_LIMIT or compress_size > ZIP64_LIMIT
118118
if zip64:
119-
fmt = '<HHQQ'
119+
fmt = b'<HHQQ'
120120
extra = extra + struct.pack(fmt,
121121
1, struct.calcsize(fmt)-4, file_size, compress_size)
122122
if file_size > ZIP64_LIMIT or compress_size > ZIP64_LIMIT:

0 commit comments

Comments
 (0)