preamble_size: make it work on Python 3.

pull/618/head
David Wilson 5 years ago
parent a91a8bf19c
commit 284dda53e8

@ -59,7 +59,7 @@ for mod in (
original_size = len(original) original_size = len(original)
minimized = mitogen.minify.minimize_source(original) minimized = mitogen.minify.minimize_source(original)
minimized_size = len(minimized) minimized_size = len(minimized)
compressed = zlib.compress(minimized, 9) compressed = zlib.compress(minimized.encode(), 9)
compressed_size = len(compressed) compressed_size = len(compressed)
print( print(
'%-25s' '%-25s'

Loading…
Cancel
Save