aboutsummaryrefslogtreecommitdiff
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-19 22:17:16 -0700
committerBenjamin Peterson <benjamin@python.org>2016-09-19 22:17:16 -0700
commite2e792d98feef833eaff28d8fe1249953c9da6ca (patch)
tree447b551b4fb0d05e016403ec4e7b10995c71c9ef /Parser
parentMERGE: Docs: Correctly link to the methods (diff)
parentremove trailing whitespace (diff)
downloadcpython-e2e792d98feef833eaff28d8fe1249953c9da6ca.tar.gz
cpython-e2e792d98feef833eaff28d8fe1249953c9da6ca.tar.bz2
cpython-e2e792d98feef833eaff28d8fe1249953c9da6ca.zip
merge 3.5 (#28184)
Diffstat (limited to 'Parser')
-rw-r--r--Parser/myreadline.c6
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)