diff -r 176f1a0d15dc -r 78f1de3f4be7 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: