preamble_size: make it work on Python 3.

This commit is contained in:
David Wilson 2019-08-10 17:20:46 +01:00
parent a91a8bf19c
commit 284dda53e8
1 changed files with 1 additions and 1 deletions

View File

@ -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'