Skip to content

Commit

Permalink
Fix line continuation in fs.filesize
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Larralde committed Oct 5, 2017
1 parent bf4f1ac commit 75cd5a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fs/filesize.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ def binary(size, si=True):
:rtype str:
"""
prefixes = ('KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB') \
if si else ('KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB')
prefixes = (
('KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB')
if si else
('KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB')
)
return _to_str(size, prefixes, 1024)


Expand Down

0 comments on commit 75cd5a0

Please sign in to comment.