Commit 4c59895f by dorp

Inlined formating #pythonic

parent b564f0d2
......@@ -53,5 +53,4 @@ def human_readable_file_size(size_in_bytes):
:type size_in_bytes: int
:return: str
'''
tmp = bitmath.Byte(bytes=size_in_bytes).best_prefix()
return tmp.format('{value:.2f} {unit}')
return bitmath.Byte(bytes=size_in_bytes).best_prefix().format('{value:.2f} {unit}')
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