diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-09-14 06:38:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 06:38:36 (GMT) |
commit | 13ad3b7a82bf56d803fbe48ee5df6c4b08986c78 (patch) | |
tree | 5704d2735779297fbba0e99ae333ff1a4f928513 /PC | |
parent | 312ffead1eb272535e021e248b5d74ab04b2e72e (diff) | |
download | cpython-13ad3b7a82bf56d803fbe48ee5df6c4b08986c78.zip cpython-13ad3b7a82bf56d803fbe48ee5df6c4b08986c78.tar.gz cpython-13ad3b7a82bf56d803fbe48ee5df6c4b08986c78.tar.bz2 |
bpo-31462: Remove trailing whitespaces. (#3564)
Diffstat (limited to 'PC')
-rw-r--r-- | PC/_testconsole.c | 6 | ||||
-rw-r--r-- | PC/msvcrtmodule.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/PC/_testconsole.c b/PC/_testconsole.c index 1c93679..23d1286 100644 --- a/PC/_testconsole.c +++ b/PC/_testconsole.c @@ -46,7 +46,7 @@ _testconsole_write_input_impl(PyObject *module, PyObject *file, /*[clinic end generated code: output=48f9563db34aedb3 input=4c774f2d05770bc6]*/ { INPUT_RECORD *rec = NULL; - + if (!PyWindowsConsoleIO_Check(file)) { PyErr_SetString(PyExc_TypeError, "expected raw console object"); return NULL; @@ -59,7 +59,7 @@ _testconsole_write_input_impl(PyObject *module, PyObject *file, if (!rec) goto error; memset(rec, 0, sizeof(INPUT_RECORD) * size); - + INPUT_RECORD *prec = rec; for (DWORD i = 0; i < size; ++i, ++p, ++prec) { prec->EventType = KEY_EVENT; @@ -80,7 +80,7 @@ _testconsole_write_input_impl(PyObject *module, PyObject *file, } PyMem_Free((void*)rec); - + Py_RETURN_NONE; error: if (rec) diff --git a/PC/msvcrtmodule.c b/PC/msvcrtmodule.c index 81d2db3..c4113e5 100644 --- a/PC/msvcrtmodule.c +++ b/PC/msvcrtmodule.c @@ -359,7 +359,7 @@ msvcrt_ungetch_impl(PyObject *module, char char_value) /*[clinic end generated code: output=c6942a0efa119000 input=22f07ee9001bbf0f]*/ { int res; - + _Py_BEGIN_SUPPRESS_IPH res = _ungetch(char_value); _Py_END_SUPPRESS_IPH |