diff options
author | 2016-09-19 22:17:16 -0700 | |
---|---|---|
committer | 2016-09-19 22:17:16 -0700 | |
commit | e2e792d98feef833eaff28d8fe1249953c9da6ca (patch) | |
tree | 447b551b4fb0d05e016403ec4e7b10995c71c9ef /Parser | |
parent | MERGE: Docs: Correctly link to the methods (diff) | |
parent | remove trailing whitespace (diff) | |
download | cpython-e2e792d98feef833eaff28d8fe1249953c9da6ca.tar.gz cpython-e2e792d98feef833eaff28d8fe1249953c9da6ca.tar.bz2 cpython-e2e792d98feef833eaff28d8fe1249953c9da6ca.zip |
merge 3.5 (#28184)
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/myreadline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c index c8b92da18aa..a8f23b790a1 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -172,7 +172,7 @@ _PyOS_WindowsConsoleReadline(HANDLE hStdIn) buf = PyMem_RawMalloc(u8len + 1); u8len = WideCharToMultiByte(CP_UTF8, 0, wbuf, total_read, buf, u8len, NULL, NULL); buf[u8len] = '\0'; - + exit: if (wbuf != wbuf_local) PyMem_RawFree(wbuf); @@ -204,11 +204,11 @@ PyOS_StdioReadline(FILE *sys_stdin, FILE *sys_stdout, const char *prompt) #ifdef MS_WINDOWS if (!Py_LegacyWindowsStdioFlag && sys_stdin == stdin) { HANDLE hStdIn; - + _Py_BEGIN_SUPPRESS_IPH hStdIn = (HANDLE)_get_osfhandle(fileno(sys_stdin)); _Py_END_SUPPRESS_IPH - + if (_get_console_type(hStdIn) == 'r') { fflush(sys_stdout); if (prompt) |