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

+1-1
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

+2-2
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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) {

Objects/obmalloc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3035,7 +3035,7 @@ _PyObject_DebugMallocStats(FILE *out)
30353035

30363036
fputc('\n', out);
30373037

3038-
/* Account for what all of those arena bytes are being used for. */
3038+
/* Account for what all of those arena bytes are being used for. */
30393039
total = printone(out, "# bytes in allocated blocks", allocated_bytes);
30403040
total += printone(out, "# bytes in available blocks", available_bytes);
30413041

Parser/tokenizer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct tok_state {
8383
int async_def_nl; /* =1 if the outermost 'async def' had at least one
8484
NEWLINE token after it. */
8585
/* How to proceed when asked for a new token in interactive mode */
86-
enum interactive_underflow_t interactive_underflow;
86+
enum interactive_underflow_t interactive_underflow;
8787
};
8888

8989
extern struct tok_state *PyTokenizer_FromString(const char *, int);

Python/bootstrap_hash.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# include <sanitizer/msan_interface.h>
2626
#endif
2727

28-
#if defined(__APPLE__) && defined(__has_builtin)
28+
#if defined(__APPLE__) && defined(__has_builtin)
2929
# if __has_builtin(__builtin_available)
3030
# define HAVE_GETENTRYPY_GETRANDOM_RUNTIME __builtin_available(macOS 10.12, iOS 10.10, tvOS 10.0, watchOS 3.0, *)
3131
# endif
@@ -221,7 +221,7 @@ py_getrandom(void *buffer, Py_ssize_t size, int blocking, int raise)
221221

222222
#if defined(__APPLE__) && defined(__has_attribute) && __has_attribute(availability)
223223
static int
224-
py_getentropy(char *buffer, Py_ssize_t size, int raise)
224+
py_getentropy(char *buffer, Py_ssize_t size, int raise)
225225
__attribute__((availability(macos,introduced=10.12)))
226226
__attribute__((availability(ios,introduced=10.0)))
227227
__attribute__((availability(tvos,introduced=10.0)))

Tools/c-analyzer/c_parser/_state_machine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def parse(srclines):
2323
if isinstance(srclines, str): # a filename
2424
raise NotImplementedError
2525

26-
26+
2727

2828
# This only handles at most 10 nested levels.
2929
#MATCHED_PARENS = textwrap.dedent(rf'''

Tools/c-analyzer/c_parser/preprocessor/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def get_file_preprocessor(filename):
9191
macros = list(_resolve_file_values(filename, file_macros))
9292
if file_incldirs:
9393
incldirs = [v for v, in _resolve_file_values(filename, file_incldirs)]
94-
94+
9595
def preprocess(**kwargs):
9696
if file_macros and 'macros' not in kwargs:
9797
kwargs['macros'] = macros

0 commit comments

Comments
 (0)