Skip to content

Commit e9ce081

Browse files
[3.9] Remove trailing spaces (GH-28710)
1 parent d211e87 commit e9ce081

8 files changed

Lines changed: 16 additions & 16 deletions

File tree

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/_osx_support.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ def _default_sysroot(cc):
156156

157157
if _cache_default_sysroot is not None:
158158
return _cache_default_sysroot
159-
159+
160160
contents = _read_output('%s -c -E -v - </dev/null' % (cc,), True)
161-
in_incdirs = False
161+
in_incdirs = False
162162
for line in contents.splitlines():
163163
if line.startswith("#include <...>"):
164164
in_incdirs = True

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/_ctypes/callproc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,14 +1484,14 @@ static PyObject *py_dyld_shared_cache_contains_path(PyObject *self, PyObject *ar
14841484

14851485
if (!PyArg_ParseTuple(args, "O", &name))
14861486
return NULL;
1487-
1487+
14881488
if (name == Py_None)
14891489
Py_RETURN_FALSE;
1490-
1490+
14911491
if (PyUnicode_FSConverter(name, &name2) == 0)
14921492
return NULL;
14931493
name_str = PyBytes_AS_STRING(name2);
1494-
1494+
14951495
r = _dyld_shared_cache_contains_path(name_str);
14961496
Py_DECREF(name2);
14971497

Modules/timemodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#define _Py_tzname tzname
5252
#endif
5353

54-
#if defined(__APPLE__ ) && defined(__has_builtin)
54+
#if defined(__APPLE__ ) && defined(__has_builtin)
5555
# if __has_builtin(__builtin_available)
5656
# define HAVE_CLOCK_GETTIME_RUNTIME __builtin_available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *)
5757
# endif
@@ -160,7 +160,7 @@ perf_counter(_Py_clock_info_t *info)
160160
#ifdef HAVE_CLOCK_GETTIME
161161

162162
#ifdef __APPLE__
163-
/*
163+
/*
164164
* The clock_* functions will be removed from the module
165165
* dict entirely when the C API is not available.
166166
*/
@@ -1421,7 +1421,7 @@ _PyTime_GetThreadTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
14211421

14221422
#if defined(__APPLE__) && defined(__has_attribute) && __has_attribute(availability)
14231423
static int
1424-
_PyTime_GetThreadTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
1424+
_PyTime_GetThreadTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
14251425
__attribute__((availability(macos, introduced=10.12)))
14261426
__attribute__((availability(ios, introduced=10.0)))
14271427
__attribute__((availability(tvos, introduced=10.0)))
@@ -1460,7 +1460,7 @@ _PyTime_GetThreadTimeWithInfo(_PyTime_t *tp, _Py_clock_info_t *info)
14601460

14611461
#ifdef HAVE_THREAD_TIME
14621462
#ifdef __APPLE__
1463-
/*
1463+
/*
14641464
* The clock_* functions will be removed from the module
14651465
* dict entirely when the C API is not available.
14661466
*/

Objects/genericaliasobject.c

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

568568
/* A helper function to create GenericAlias' args tuple and set its attributes.
569-
* Returns 1 on success, 0 on failure.
569+
* Returns 1 on success, 0 on failure.
570570
*/
571571
static inline int
572572
setup_ga(gaobject *alias, PyObject *origin, PyObject *args) {

Python/bootstrap_hash.c

Lines changed: 2 additions & 2 deletions
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)))

Python/pytime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#if defined(__APPLE__)
77
#include <mach/mach_time.h> /* mach_absolute_time(), mach_timebase_info() */
88

9-
#if defined(__APPLE__) && defined(__has_builtin)
9+
#if defined(__APPLE__) && defined(__has_builtin)
1010
# if __has_builtin(__builtin_available)
1111
# define HAVE_CLOCK_GETTIME_RUNTIME __builtin_available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *)
1212
# endif
@@ -730,7 +730,7 @@ pygettimeofday(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
730730
}
731731

732732
#ifdef HAVE_CLOCK_GETTIME_RUNTIME
733-
} else {
733+
} else {
734734
#endif
735735

736736
#endif

0 commit comments

Comments
 (0)