diff options
Diffstat (limited to 'ranger/ext/human_readable.py')
-rw-r--r-- | ranger/ext/human_readable.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/ext/human_readable.py b/ranger/ext/human_readable.py index 50b95b99..e4b04525 100644 --- a/ranger/ext/human_readable.py +++ b/ranger/ext/human_readable.py @@ -2,7 +2,7 @@ # License: GNU GPL version 3, see the file "AUTHORS" for details. -def human_readable(byte, separator=' '): +def human_readable(byte, separator=' '): # pylint: disable=too-many-return-statements """Convert a large number of bytes to an easily readable format. >>> human_readable(54) @@ -42,6 +42,7 @@ def human_readable(byte, separator=' '): return '%.4g%sP' % (byte / 2**50.0, separator) return '>9000' + if __name__ == '__main__': import doctest doctest.testmod() |