Skip to content

Commit

Permalink
Remove use of str.removesuffix
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <[email protected]>
  • Loading branch information
lebrice committed Sep 19, 2023
1 parent 25c7dee commit 1b6a509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions milatools/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1b6a509

Please sign in to comment.