Skip to content

Commit 058fb35

Browse files
bpo-44854: Remove trailing whitespaces (GH-27689)
1 parent 7d14fdb commit 058fb35

File tree

13 files changed

+15
-15
lines changed

13 files changed

+15
-15
lines changed

.github/SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ official website](https://www.python.org/dev/security/) for
1414
instructions on how to report a security-related problem to
1515
the Python team responsibly.
1616

17-
To reach the response team, email `security at python dot org`.
17+
To reach the response team, email `security at python dot org`.

.github/problem-matchers/sphinx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"line": 2,
3535
"message": 3
3636
}
37-
]
37+
]
3838
}
3939
]
4040
}

Doc/tools/templates/search.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
jQuery(function() {
88
$.getJSON("_static/glossary.json", function(glossary) {
9-
var RESULT_TEMPLATE = '<div style="display: none" class="admonition seealso" id="glossary-result">' +
9+
var RESULT_TEMPLATE = '<div style="display: none" class="admonition seealso" id="glossary-result">' +
1010
' <p class="topic-title">' +
1111
' <a class="glossary-title" href="#"></a>' +
1212
' </p>' +
@@ -20,7 +20,7 @@
2020
var glossary_item = glossary[search_param];
2121
if (glossary_item) {
2222
var resultDiv = $("#glossary-result");
23-
23+
2424
// set up the title text with a link to the glossary page
2525
resultDiv.find(".glossary-title").text('Glossary: ' + glossary_item.title);
2626
var link_target = search_param.replace(/ /g, '-');

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
@@ -576,7 +576,7 @@ static PyGetSetDef ga_properties[] = {
576576
};
577577

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

Parser/tokenizer.h

Lines changed: 1 addition & 1 deletion
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/adaptive.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A family of instructions has the following fundamental properties:
1212
* It has a single adaptive instruction that records an execution count and,
1313
at regular intervals, attempts to specialize itself. If not specializing,
1414
it executes the non-adaptive instruction.
15-
* It has at least one specialized form of the instruction that is tailored
15+
* It has at least one specialized form of the instruction that is tailored
1616
for a particular value or set of values at runtime.
1717
* All members of the family have access to the same number of cache entries.
1818
Individual family members do not need to use all of the entries.
@@ -80,7 +80,7 @@ requiring judgement and experimentation to design the family of instructions.
8080

8181
Before choosing how to specialize an instruction, it is important to gather
8282
some data. What are the patterns of usage of the base instruction?
83-
Data can best be gathered by instrumenting the interpreter. Since a
83+
Data can best be gathered by instrumenting the interpreter. Since a
8484
specialization function and adaptive instruction are going to be required,
8585
instrumentation can most easily be added in the specialization function.
8686

Tools/c-analyzer/c_parser/_state_machine.py

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)