Skip to content

Commit 93242d7

Browse files
[3.10] Remove trailing spaces (GH-28709)
1 parent 5ba61f4 commit 93242d7

File tree

15 files changed

+17
-17
lines changed

15 files changed

+17
-17
lines changed

Include/internal/pycore_code.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#ifdef __cplusplus
44
extern "C" {
55
#endif
6-
6+
77
typedef struct {
88
PyObject *ptr; /* Cached pointer (borrowed reference) */
99
uint64_t globals_ver; /* ma_version of global dict */

Lib/test/test_syntax.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ def _check_error(self, code, errtext,
12981298
self.assertEqual(err.end_lineno, end_lineno)
12991299
if end_offset is not None:
13001300
self.assertEqual(err.end_offset, end_offset)
1301-
1301+
13021302
else:
13031303
self.fail("compile() did not raise SyntaxError")
13041304

@@ -1438,7 +1438,7 @@ def test_kwargs_last3(self):
14381438
self._check_error("int(**{'base': 10}, *['2'])",
14391439
"iterable argument unpacking follows "
14401440
"keyword argument unpacking")
1441-
1441+
14421442
def test_generator_in_function_call(self):
14431443
self._check_error("foo(x, y for y in range(3) for z in range(2) if z , p)",
14441444
"Generator expression must be parenthesized",

Lib/test/test_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ def test_clock_functions(self):
10621062
clock_names = [
10631063
"CLOCK_MONOTONIC", "clock_gettime", "clock_gettime_ns", "clock_settime",
10641064
"clock_settime_ns", "clock_getres"]
1065-
1065+
10661066
if mac_ver >= (10, 12):
10671067
for name in clock_names:
10681068
self.assertTrue(hasattr(time, name), f"time.{name} is not available")

Lib/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
'NamedTuple', # Not really a type.
100100
'TypedDict', # Not really a type.
101101
'Generator',
102-
102+
103103
# Other concrete types.
104104
'BinaryIO',
105105
'IO',

Modules/_bisectmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ _bisect_insort_left_impl(PyObject *module, PyObject *a, PyObject *x,
240240
{
241241
PyObject *result, *key_x;
242242
Py_ssize_t index;
243-
243+
244244
if (key == Py_None) {
245245
index = internal_bisect_left(a, x, lo, hi, key);
246246
} else {

Modules/_ctypes/_ctypes_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ EXPORT (HRESULT) KeepObject(IUnknown *punk)
10341034

10351035
static struct PyModuleDef_Slot _ctypes_test_slots[] = {
10361036
{0, NULL}
1037-
};
1037+
};
10381038

10391039
static struct PyModuleDef _ctypes_testmodule = {
10401040
PyModuleDef_HEAD_INIT,

Modules/_json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ raise_errmsg(const char *msg, PyObject *s, Py_ssize_t end)
321321
if (decoder == NULL) {
322322
return;
323323
}
324-
324+
325325
_Py_IDENTIFIER(JSONDecodeError);
326326
PyObject *JSONDecodeError = _PyObject_GetAttrId(decoder, &PyId_JSONDecodeError);
327327
Py_DECREF(decoder);

Modules/termios.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ static void termiosmodule_free(void *m) {
10041004
termiosmodule_clear((PyObject *)m);
10051005
}
10061006

1007-
static int
1007+
static int
10081008
termios_exec(PyObject *mod)
10091009
{
10101010
struct constant *constant = termios_constants;

Objects/exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ SyntaxError_init(PySyntaxErrorObject *self, PyObject *args, PyObject *kwds)
15031503
&self->end_lineno, &self->end_offset)) {
15041504
Py_DECREF(info);
15051505
return -1;
1506-
}
1506+
}
15071507

15081508
Py_INCREF(self->filename);
15091509
Py_INCREF(self->lineno);

Objects/genericaliasobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ static PyGetSetDef ga_properties[] = {
578578
};
579579

580580
/* A helper function to create GenericAlias' args tuple and set its attributes.
581-
* Returns 1 on success, 0 on failure.
581+
* Returns 1 on success, 0 on failure.
582582
*/
583583
static inline int
584584
setup_ga(gaobject *alias, PyObject *origin, PyObject *args) {

0 commit comments

Comments
 (0)