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.
pull/12119/head
Marius Gedminas 9 years ago
parent 0eb538df03
commit 39196ec91e

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

Loading…
Cancel
Save