diff --git a/securedrop_client/utils.py b/securedrop_client/utils.py index eb5f35ab1..72bb3cb9d 100644 --- a/securedrop_client/utils.py +++ b/securedrop_client/utils.py @@ -188,7 +188,7 @@ def humanize_filesize(filesize: int) -> str: elif filesize < 1024 * 1024: return "{}KB".format(math.floor(filesize / 1024)) else: - return "{}MB".format(math.floor(filesize / 1024**2)) + return "{}MB".format(math.floor(filesize / 1024 ** 2)) @contextmanager