diff options
Diffstat (limited to 'src/jwebmail')
-rw-r--r-- | src/jwebmail/__init__.py | 2 | ||||
-rw-r--r-- | src/jwebmail/view.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/jwebmail/__init__.py b/src/jwebmail/__init__.py index 5c31da6..e3c778d 100644 --- a/src/jwebmail/__init__.py +++ b/src/jwebmail/__init__.py @@ -34,7 +34,7 @@ else: toml_read_file = dict(load=toml_load, text=True) -__version__ = "2.1.0.dev2" +__version__ = "2.2.0.dev0" def validate_config(app): 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): |