From 88686ab7f52955bb50f603040e8dd29bac2b459b Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 4 Jan 2025 01:37:43 +0000 Subject: Print to stdout, not stderr. Since we are no longer printing out web links to stdout, we no longer care to separate out other printing to stderr. --- globus-weblinks | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/globus-weblinks b/globus-weblinks index 92f598d..8a7d718 100755 --- a/globus-weblinks +++ b/globus-weblinks @@ -4,7 +4,6 @@ import argparse from pathlib import Path, PurePath import json import requests -import sys import globus_sdk from urllib.parse import urlparse @@ -18,12 +17,9 @@ def get_transfer_token(): client.oauth2_start_flow() authorize_url = client.oauth2_get_authorize_url() - print(f"Please go to this URL and login:\n\n{authorize_url}\n", - file=sys.stderr) + print(f"Please go to this URL and login:\n\n{authorize_url}\n") - print("Please enter the code you get after login here: ", - end="", file=sys.stderr) - auth_code = input().strip() + auth_code = input("Please enter the code you get after login here: ").strip() return (client.oauth2_exchange_code_for_tokens(auth_code) .by_resource_server["transfer.api.globus.org"]["access_token"]) -- cgit v1.2.3