From 22f50730a9ac75b947e68a805254f893338486db Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Mon, 19 Feb 2024 18:44:54 +0100 Subject: [PATCH] use x --- lib/galaxy/util/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/galaxy/util/__init__.py b/lib/galaxy/util/__init__.py index 64ef94c1f10f..c97423b795be 100644 --- a/lib/galaxy/util/__init__.py +++ b/lib/galaxy/util/__init__.py @@ -1144,9 +1144,9 @@ def trailing_zeros_to_powerof10(amount: int): >>> trailing_zeros_to_powerof10(23000) '23000' >>> trailing_zeros_to_powerof10(2300000) - '23\u22C510^5' + '23\u00d710^5' >>> trailing_zeros_to_powerof10(23000000) - '23\u22C510^6' + '23\u00d710^6' >>> trailing_zeros_to_powerof10(1) '1' >>> trailing_zeros_to_powerof10(0) @@ -1162,10 +1162,10 @@ def trailing_zeros_to_powerof10(amount: int): while i >= 0 and amount[i] == "0": zeros += 1 i -= 1 - if len(amount) < len(f"{amount[: i+1]}\u22C510^{zeros}"): + if len(amount) < len(f"{amount[: i+1]}\u00d710^{zeros}"): return amount else: - return f"{amount[: i+1]}\u22C510^{zeros}" + return f"{amount[: i+1]}\u00d710^{zeros}" def roundify(amount: int, sfs: int = 2):