From 284dda53e8fe565074e1ed6523012ae596d3c044 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 10 Aug 2019 17:20:46 +0100 Subject: [PATCH] preamble_size: make it work on Python 3. --- preamble_size.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preamble_size.py b/preamble_size.py index 43c10029..f0d1e804 100644 --- a/preamble_size.py +++ b/preamble_size.py @@ -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'