-
Committer:
Ryan Harper
-
Date:
2016-09-19 19:11:43 UTC
-
mfrom:
(423.3.1 trunk.32bit-py2-long)
-
Revision ID:
ryan.harper@canonical.com-20160919191143-8md5xy9pa7bnwsjn
bytes2human: fix for values larger than 32 bit int on 32 bit python2.
This fixes a bug in bytes2human when running on 32 bit system.
the bytes2human tests would fail because we were not testing for a
type 'long' and integers over 32 bit get converted to long.
$ uname -m
i386
$ python2 -c 'print(type(1024 ** 3 * 10))'
<type 'long'>