Drop the L suffix on numerical constants

Python has had automatic int-to-long promotion for a long long time now.
Even Python 2.4 does that automatically.

Python 3 drops support for the L suffix altogether.
This commit is contained in:
Marius Gedminas 2015-08-27 09:20:35 +03:00
parent 0eb538df03
commit 39196ec91e

View file

@ -107,13 +107,13 @@ def human_readable(size, isbits=False, unit=None):
suffix = ''
ranges = (
(1<<70L, 'Z'),
(1<<60L, 'E'),
(1<<50L, 'P'),
(1<<40L, 'T'),
(1<<30L, 'G'),
(1<<20L, 'M'),
(1<<10L, 'K'),
(1<<70, 'Z'),
(1<<60, 'E'),
(1<<50, 'P'),
(1<<40, 'T'),
(1<<30, 'G'),
(1<<20, 'M'),
(1<<10, 'K'),
(1, base)
)