From 0082e13048dcf1574d4163ccc20b67b8a593277a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Cholewi=C5=84ski?= Date: Fri, 10 Apr 2015 14:40:10 +0200 Subject: [PATCH] Fix bytes2human when builtin zip returns iterators --- boltons/strutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boltons/strutils.py b/boltons/strutils.py index 3f31cca..8df3e2d 100644 --- a/boltons/strutils.py +++ b/boltons/strutils.py @@ -492,7 +492,7 @@ DEACCENT_MAP = DeaccenterDict(_BASE_DEACCENT_MAP) _SIZE_SYMBOLS = ('B', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y') _SIZE_BOUNDS = [(1024 ** i, sym) for i, sym in enumerate(_SIZE_SYMBOLS)] -_SIZE_RANGES = zip(_SIZE_BOUNDS, _SIZE_BOUNDS[1:]) +_SIZE_RANGES = list(zip(_SIZE_BOUNDS, _SIZE_BOUNDS[1:])) def bytes2human(nbytes, ndigits=0):