Commit 39196ec9 by Marius Gedminas

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.
parent 0eb538df
...@@ -107,13 +107,13 @@ def human_readable(size, isbits=False, unit=None): ...@@ -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)
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment