ui: use input() directly
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 08 Mar 2022 10:58:22 +0100
changeset 48933 78f1de3f4be7
parent 48932 176f1a0d15dc
child 48934 06de08b36c82
ui: use input() directly pycompat.rawinput() is an alias to input() Differential Revision: https://phab.mercurial-scm.org/D12339
mercurial/ui.py
--- a/mercurial/ui.py	Tue Mar 01 20:50:34 2022 -0800
+++ b/mercurial/ui.py	Tue Mar 08 10:58:22 2022 +0100
@@ -1725,9 +1725,9 @@
             if usereadline:
                 self.flush()
                 prompt = encoding.strfromlocal(prompt)
-                line = encoding.strtolocal(pycompat.rawinput(prompt))
+                line = encoding.strtolocal(input(prompt))
                 # When stdin is in binary mode on Windows, it can cause
-                # raw_input() to emit an extra trailing carriage return
+                # input() to emit an extra trailing carriage return
                 if pycompat.oslinesep == b'\r\n' and line.endswith(b'\r'):
                     line = line[:-1]
             else: