preamble_size: make it work on Python 3.
This commit is contained in:
parent
a91a8bf19c
commit
284dda53e8
|
@ -59,7 +59,7 @@ for mod in (
|
|||
original_size = len(original)
|
||||
minimized = mitogen.minify.minimize_source(original)
|
||||
minimized_size = len(minimized)
|
||||
compressed = zlib.compress(minimized, 9)
|
||||
compressed = zlib.compress(minimized.encode(), 9)
|
||||
compressed_size = len(compressed)
|
||||
print(
|
||||
'%-25s'
|
||||
|
|
Loading…
Reference in New Issue