From 70b4a339dafd4c2fae1dcbe48d4fa69134398a9c Mon Sep 17 00:00:00 2001 From: siddharth Date: Sat, 29 May 2021 13:48:21 -0400 Subject: acmens.py: update `_agree_to` Fix prompt. Send prompt text to stderr instead of stdout. --- acmens.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acmens.py b/acmens.py index 9b4c2d9..f5233cf 100644 --- a/acmens.py +++ b/acmens.py @@ -231,9 +231,10 @@ Notes: def _agree_to(terms): """Asks user whether they agree to the Let's Encrypt Subscriber Agreement. It will immediately exit if user does not agree.""" - ans = input( + sys.stderr.write( "\nDo you agree to the Let's Encrypt Subscriber Agreement\n({})? ".format(terms) ) + ans = input() if re.search(r"^[Yy]", ans) is None: sys.stderr.write("Error: Cannot continue. Exiting.\n") sys.exit(1) -- cgit v1.2.3