Skip to content

Commit 284dda5

Browse files
committed
preamble_size: make it work on Python 3.
1 parent a91a8bf commit 284dda5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

preamble_size.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
original_size = len(original)
6060
minimized = mitogen.minify.minimize_source(original)
6161
minimized_size = len(minimized)
62-
compressed = zlib.compress(minimized, 9)
62+
compressed = zlib.compress(minimized.encode(), 9)
6363
compressed_size = len(compressed)
6464
print(
6565
'%-25s'

0 commit comments

Comments
 (0)