Test string cleanup continues

pull/277/head^2
Rob 2024-12-20 12:22:08 -05:00
rodzic 08832bd6d3
commit 1c66f16f5c
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -23,6 +23,6 @@ def progress_async(text, n=None, value_type="%"):
Raises:
Exception: If an exception is thrown during the operation.
"""
throw_exception = yield ("Progress:", {"text": text, "n": n, "value_type": value_type})
throw_exception = yield (f"Progress:{text} {n}{value_type}\n")
if throw_exception is not None:
raise throw_exception

Wyświetl plik

@ -178,8 +178,8 @@ def progress(text, n=None):
if n is None:
n = ""
else:
n = " " + str(int(n * 1000) / 1000) + "%"
sys.stdout.write("progress{%s%s}\n" % (text, n))
n = str(int(n * 1000) / 1000) + "%"
sys.stdout.write(f"Progress: {text}{n}\n")
sys.stdout.flush()