From 6dc655898df34ad424dfc467a8b276fdf31bd791 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 5 Jun 2024 06:45:15 +0200 Subject: Merging upstream version 3.0.46. Signed-off-by: Daniel Baumann --- examples/prompts/patch-stdout.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/prompts/patch-stdout.py') diff --git a/examples/prompts/patch-stdout.py b/examples/prompts/patch-stdout.py index 1c83524..3a89f36 100755 --- a/examples/prompts/patch-stdout.py +++ b/examples/prompts/patch-stdout.py @@ -5,6 +5,7 @@ An example that demonstrates how `patch_stdout` works. This makes sure that output from other threads doesn't disturb the rendering of the prompt, but instead is printed nicely above the prompt. """ + import threading import time @@ -31,7 +32,7 @@ def main(): # should not disturb anything. with patch_stdout(): result = prompt("Say something: ") - print("You said: %s" % result) + print(f"You said: {result}") # Stop thread. running = False -- cgit v1.2.3