]> granicus.if.org Git - python/commit
Issue #11272: Fix input() and sys.stdin for Windows newline
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 23 Feb 2011 12:07:37 +0000 (12:07 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 23 Feb 2011 12:07:37 +0000 (12:07 +0000)
commitc0f1a1afae3843986eb0bef54b165424361f2510
treec650a798108af5024bcee2c01ae8f67586c952c8
parentdd071045e776e1c3e8cf6750a2fd1d0958bf19b3
Issue #11272: Fix input() and sys.stdin for Windows newline

On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses
universal newline (replace '\r\n' by '\n').
Lib/test/test_cmd_line.py
Misc/NEWS
Python/bltinmodule.c
Python/pythonrun.c