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