From e9984334a6d421619c8f4dc28416b9457c5ecbea Mon Sep 17 00:00:00 2001 From: Peter Robins Date: Sun, 29 Dec 2013 12:00:43 -0500 Subject: [PATCH] Make build.py compatible with Python 2.6 --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index c001fd0f2d..053b20cd2b 100755 --- a/build.py +++ b/build.py @@ -159,7 +159,7 @@ def report_sizes(t): gzipfile.close() rawsize = os.stat(t.name).st_size gzipsize = len(stringio.getvalue()) - savings = '{:.2%}'.format((rawsize - gzipsize)/float(rawsize)) + savings = '{0:.2%}'.format((rawsize - gzipsize)/float(rawsize)) t.info('uncompressed: %8d bytes', rawsize) t.info(' compressed: %8d bytes, (saved %s)', gzipsize, savings)