fix black

This commit is contained in:
2023-09-22 09:54:32 +02:00
parent c3b1d69416
commit c730a98168
3 changed files with 5 additions and 13 deletions

View File

@@ -45,7 +45,7 @@ def convert_bytes(size):
"""Convert bytes to KB, MB etc depending on size"""
power = 1024
level = 0
labels = {0 : 'B', 1: 'KB', 2: 'MB', 3: 'GB', 4: 'TB'}
labels = {0: "B", 1: "KB", 2: "MB", 3: "GB", 4: "TB"}
while size > power:
size /= power
level += 1