From 2c620ab8a6f1177ec2e68e57be915d10be65fad1 Mon Sep 17 00:00:00 2001 From: Nanda Scott Date: Tue, 23 Oct 2018 16:08:23 -0400 Subject: [PATCH] Updated human_readable to use python3 syntax --- scrython/bulk_data/bulk_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrython/bulk_data/bulk_data.py b/scrython/bulk_data/bulk_data.py index a38e34a..caba744 100644 --- a/scrython/bulk_data/bulk_data.py +++ b/scrython/bulk_data/bulk_data.py @@ -110,10 +110,10 @@ class BulkData(object): for unit in ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB']: if abs(before) < 1024.0: - return '%3.1f%s' % (before, unit) + return '{:3.1f}{}'.format(before, unit) before /= 1024.0 - return '%.1f%s' % (before, 'YiB') + return '{:.1f}{}'.format(before, 'YiB') return self.scryfallJson['data'][num]['compressed_size']