From 51d8b1301653856a866053b2ec3d39dd3d782e3f Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Tue, 12 Mar 2024 18:48:17 +0100 Subject: version bump and formating --- src/jwebmail/view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jwebmail/view.py') diff --git a/src/jwebmail/view.py b/src/jwebmail/view.py index 7983c81..d435686 100644 --- a/src/jwebmail/view.py +++ b/src/jwebmail/view.py @@ -17,7 +17,7 @@ def print_sizes10(var): "PByte", ] - return Markup("{} {}".format(round(var / (10**expo)), PREFIX[i])) + return Markup(f"{round(var / (10**expo))} {PREFIX[i]}") def print_sizes2(var): @@ -33,7 +33,7 @@ def print_sizes2(var): "PiByte", ] - return Markup("{} {}".format(round(var / (2**expo)), PREFIX[i])) + return Markup(f"{round(var / (2**expo))} {PREFIX[i]}") def parse_iso_date(inp): -- cgit v1.2.3