From 1b6a5092ebbf60b07ff687bb548c7ab87a64c9fb Mon Sep 17 00:00:00 2001 From: Fabrice Normandin Date: Tue, 19 Sep 2023 13:16:10 -0400 Subject: [PATCH] Remove use of `str.removesuffix` Signed-off-by: Fabrice Normandin --- milatools/cli/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milatools/cli/commands.py b/milatools/cli/commands.py index 71f89b78..d2b0cac4 100644 --- a/milatools/cli/commands.py +++ b/milatools/cli/commands.py @@ -717,8 +717,8 @@ def _get_disk_quota_usage( used_files, max_files, ) = last_line_parts.split("|") - used_gb = float(used_gb.removesuffix("GiB").strip()) - max_gb = float(max_gb.removesuffix("GiB").strip()) + used_gb = float(used_gb.replace("GiB", "").strip()) + max_gb = float(max_gb.replace("GiB", "").strip()) used_files = int(used_files.strip()) max_files = int(max_files.strip()) return (used_gb, max_gb), (used_files, max_files)