Fix bytes2human when builtin zip returns iterators

This commit is contained in:
Kamil Cholewiński 2015-04-10 14:40:10 +02:00
parent fe2af9f3ed
commit 0082e13048
1 changed files with 1 additions and 1 deletions

View File

@ -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):