mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Python 3: avoid long integer literals
Even Python 2.4 automatically promotes int to long.
This commit is contained in:
parent
f5d4935197
commit
6708d56a21
1 changed files with 7 additions and 7 deletions
|
@ -1722,13 +1722,13 @@ class AnsibleModule(object):
|
|||
|
||||
def pretty_bytes(self,size):
|
||||
ranges = (
|
||||
(1<<70L, 'ZB'),
|
||||
(1<<60L, 'EB'),
|
||||
(1<<50L, 'PB'),
|
||||
(1<<40L, 'TB'),
|
||||
(1<<30L, 'GB'),
|
||||
(1<<20L, 'MB'),
|
||||
(1<<10L, 'KB'),
|
||||
(1<<70, 'ZB'),
|
||||
(1<<60, 'EB'),
|
||||
(1<<50, 'PB'),
|
||||
(1<<40, 'TB'),
|
||||
(1<<30, 'GB'),
|
||||
(1<<20, 'MB'),
|
||||
(1<<10, 'KB'),
|
||||
(1, 'Bytes')
|
||||
)
|
||||
for limit, suffix in ranges:
|
||||
|
|
Loading…
Reference in a new issue