[Updated] D12339: ui: use input() directly
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Mar 8 11:01:44 UTC 2022
Closed by commit rHG78f1de3f4be7: ui: use input() directly (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
CHANGED PRIOR TO COMMIT
https://phab.mercurial-scm.org/D12339?vs=32551&id=32589#toc
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12339?vs=32551&id=32589
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12339/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12339
AFFECTED FILES
mercurial/ui.py
CHANGE DETAILS
diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -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:
To: indygreg, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220308/9f3576cc/attachment-0002.html>
More information about the Mercurial-patches
mailing list