Show More
@@ -1725,9 +1725,9 b' class ui(object):' | |||
|
1725 | 1725 | if usereadline: |
|
1726 | 1726 | self.flush() |
|
1727 | 1727 | prompt = encoding.strfromlocal(prompt) |
|
1728 |
line = encoding.strtolocal( |
|
|
1728 | line = encoding.strtolocal(input(prompt)) | |
|
1729 | 1729 | # When stdin is in binary mode on Windows, it can cause |
|
1730 |
# |
|
|
1730 | # input() to emit an extra trailing carriage return | |
|
1731 | 1731 | if pycompat.oslinesep == b'\r\n' and line.endswith(b'\r'): |
|
1732 | 1732 | line = line[:-1] |
|
1733 | 1733 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now