Skip to content

Commit d94ef8f

Browse files
Fix trailing whitespaces in C and Python files. (#4131)
1 parent 2b5cbbb commit d94ef8f

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Include/pytime.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ typedef enum {
3030
/* Round to nearest with ties going to nearest even integer.
3131
For example, used to round from a Python float. */
3232
_PyTime_ROUND_HALF_EVEN=2,
33-
/* Round away from zero
33+
/* Round away from zero
3434
For example, used for timeout. _PyTime_ROUND_CEILING rounds
3535
-1e-9 to 0 milliseconds which causes bpo-31786 issue.
3636
_PyTime_ROUND_UP rounds -1e-9 to -1 millisecond which keeps
3737
the timeout sign as expected. select.poll(timeout) must block
3838
for negative values." */
3939
_PyTime_ROUND_UP=3,
40-
/* _PyTime_ROUND_TIMEOUT (an alias for _PyTime_ROUND_UP) should be
40+
/* _PyTime_ROUND_TIMEOUT (an alias for _PyTime_ROUND_UP) should be
4141
used for timeouts. */
4242
_PyTime_ROUND_TIMEOUT = _PyTime_ROUND_UP
4343
} _PyTime_round_t;

Lib/email/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def parsedate_to_datetime(data):
217217
def parseaddr(addr):
218218
"""
219219
Parse addr into its constituent realname and email address parts.
220-
220+
221221
Return a tuple of realname and email address, unless the parse fails, in
222222
which case return a 2-tuple of ('', '').
223223
"""

Lib/test/test_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def callback(code):
231231
SetExtra.restype = ctypes.c_int
232232

233233
GetExtra = py._PyCode_GetExtra
234-
GetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t,
234+
GetExtra.argtypes = (ctypes.py_object, ctypes.c_ssize_t,
235235
ctypes.POINTER(ctypes.c_voidp))
236236
GetExtra.restype = ctypes.c_int
237237

Lib/test/test_inspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2021,7 +2021,7 @@ def test_staticmethod(*args): # NOQA
20212021
((('args', ..., ..., 'var_positional'),), ...))
20222022
self.assertEqual(self.signature(A.f3),
20232023
((('args', ..., ..., 'var_positional'),), ...))
2024-
self.assertEqual(self.signature(A.f4),
2024+
self.assertEqual(self.signature(A.f4),
20252025
((('args', ..., ..., 'var_positional'),
20262026
('kwargs', ..., ..., 'var_keyword')), ...))
20272027
@cpython_only

PC/_testconsole.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ _testconsole_write_input_impl(PyObject *module, PyObject *file,
4646
/*[clinic end generated code: output=48f9563db34aedb3 input=4c774f2d05770bc6]*/
4747
{
4848
INPUT_RECORD *rec = NULL;
49-
49+
5050
if (!PyWindowsConsoleIO_Check(file)) {
5151
PyErr_SetString(PyExc_TypeError, "expected raw console object");
5252
return NULL;
@@ -59,7 +59,7 @@ _testconsole_write_input_impl(PyObject *module, PyObject *file,
5959
if (!rec)
6060
goto error;
6161
memset(rec, 0, sizeof(INPUT_RECORD) * size);
62-
62+
6363
INPUT_RECORD *prec = rec;
6464
for (DWORD i = 0; i < size; ++i, ++p, ++prec) {
6565
prec->EventType = KEY_EVENT;
@@ -80,7 +80,7 @@ _testconsole_write_input_impl(PyObject *module, PyObject *file,
8080
}
8181

8282
PyMem_Free((void*)rec);
83-
83+
8484
Py_RETURN_NONE;
8585
error:
8686
if (rec)

PC/msvcrtmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ msvcrt_ungetch_impl(PyObject *module, char char_value)
353353
/*[clinic end generated code: output=c6942a0efa119000 input=22f07ee9001bbf0f]*/
354354
{
355355
int res;
356-
356+
357357
_Py_BEGIN_SUPPRESS_IPH
358358
res = _ungetch(char_value);
359359
_Py_END_SUPPRESS_IPH

0 commit comments

Comments
 (0)