Skip to content

Commit 00c8634

Browse files
committed
[dehinter.system] PEP8 formatting changes
1 parent 7327283 commit 00c8634

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/dehinter/system.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
def get_filesize(filepath):
1919
"""Returns formatted file size tuple fit for printing to end user."""
2020
filesize = os.path.getsize(filepath)
21-
KB_FACTOR = 1 << 10
22-
MB_FACTOR = 1 << 20
21+
kb_factor = 1 << 10
22+
mb_factor = 1 << 20
2323

24-
if filesize < KB_FACTOR:
24+
if filesize < kb_factor:
2525
size_string = "B"
2626
formatted_filesize = float(filesize)
27-
elif KB_FACTOR <= filesize < MB_FACTOR:
27+
elif kb_factor <= filesize < mb_factor:
2828
size_string = "KB"
29-
formatted_filesize = filesize / float(KB_FACTOR)
29+
formatted_filesize = filesize / float(kb_factor)
3030
else:
3131
size_string = "MB"
32-
formatted_filesize = filesize / float(MB_FACTOR)
32+
formatted_filesize = filesize / float(mb_factor)
3333

3434
return "{0:.2f}".format(formatted_filesize), size_string

0 commit comments

Comments
 (0)