Skip to content

Commit 1c698b9

Browse files
committed
Fix print oauth url without flush
1 parent 6db939b commit 1c698b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

trino/auth.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,7 @@ class ConsoleRedirectHandler(RedirectHandler):
291291
"""
292292

293293
def __call__(self, url: str) -> None:
294-
print("Open the following URL in browser for the external authentication:")
295-
print(url)
294+
print(f"Open the following URL in browser for the external authentication:\n{url}", flush=True)
296295

297296

298297
class WebBrowserRedirectHandler(RedirectHandler):

0 commit comments

Comments
 (0)