From 1c698b9444552afb69a511515665eb001c11065b Mon Sep 17 00:00:00 2001 From: Vlad Kuzin Date: Fri, 18 Apr 2025 00:19:51 +0300 Subject: [PATCH] Fix print oauth url without flush --- trino/auth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trino/auth.py b/trino/auth.py index 12456ba4..306539f0 100644 --- a/trino/auth.py +++ b/trino/auth.py @@ -291,8 +291,7 @@ class ConsoleRedirectHandler(RedirectHandler): """ def __call__(self, url: str) -> None: - print("Open the following URL in browser for the external authentication:") - print(url) + print(f"Open the following URL in browser for the external authentication:\n{url}", flush=True) class WebBrowserRedirectHandler(RedirectHandler):