Show More
@@ -403,7 +403,12 b' class ui(object):' | |||
|
403 | 403 | readline.read_history_file |
|
404 | 404 | except ImportError: |
|
405 | 405 | pass |
|
406 |
|
|
|
406 | line = raw_input(prompt) | |
|
407 | # When stdin is in binary mode on Windows, it can cause | |
|
408 | # raw_input() to emit an extra trailing carriage return | |
|
409 | if os.linesep == '\r\n' and line and line[-1] == '\r': | |
|
410 | line = line[:-1] | |
|
411 | return line | |
|
407 | 412 | |
|
408 | 413 | def prompt(self, msg, pat=None, default="y", matchflags=0): |
|
409 | 414 | if not self.interactive: return default |
General Comments 0
You need to be logged in to leave comments.
Login now