From 2edb6f2bdcd447bc5ad2f159ceb1b02bfb6d3b10 Mon Sep 17 00:00:00 2001 From: Er1kkkaaa Date: Mon, 14 Mar 2022 19:50:32 +0200 Subject: [PATCH] Recent updates included. --- securedrop_client/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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