changeset 48933:78f1de3f4be7

ui: use input() directly pycompat.rawinput() is an alias to input() Differential Revision: https://phab.mercurial-scm.org/D12339
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 08 Mar 2022 10:58:22 +0100
parents 176f1a0d15dc
children 06de08b36c82
files mercurial/ui.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: