Skip to content

Commit

Permalink
bpo-44854: Remove trailing whitespaces (pythonGH-27689)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka authored Aug 9, 2021
1 parent 7d14fdb commit 058fb35
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ official website](https://www.python.org/dev/security/) for
instructions on how to report a security-related problem to
the Python team responsibly.

To reach the response team, email `security at python dot org`.
To reach the response team, email `security at python dot org`.
2 changes: 1 addition & 1 deletion .github/problem-matchers/sphinx.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"line": 2,
"message": 3
}
]
]
}
]
}
4 changes: 2 additions & 2 deletions Doc/tools/templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

jQuery(function() {
$.getJSON("_static/glossary.json", function(glossary) {
var RESULT_TEMPLATE = '<div style="display: none" class="admonition seealso" id="glossary-result">' +
var RESULT_TEMPLATE = '<div style="display: none" class="admonition seealso" id="glossary-result">' +
' <p class="topic-title">' +
' <a class="glossary-title" href="#"></a>' +
' </p>' +
Expand All @@ -20,7 +20,7 @@
var glossary_item = glossary[search_param];
if (glossary_item) {
var resultDiv = $("#glossary-result");

// set up the title text with a link to the glossary page
resultDiv.find(".glossary-title").text('Glossary: ' + glossary_item.title);
var link_target = search_param.replace(/ /g, '-');
Expand Down
2 changes: 1 addition & 1 deletion Modules/_bisectmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ _bisect_insort_left_impl(PyObject *module, PyObject *a, PyObject *x,
{
PyObject *result, *key_x;
Py_ssize_t index;

if (key == Py_None) {
index = internal_bisect_left(a, x, lo, hi, key);
} else {
Expand Down
2 changes: 1 addition & 1 deletion Modules/_ctypes/_ctypes_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ EXPORT (HRESULT) KeepObject(IUnknown *punk)

static struct PyModuleDef_Slot _ctypes_test_slots[] = {
{0, NULL}
};
};

static struct PyModuleDef _ctypes_testmodule = {
PyModuleDef_HEAD_INIT,
Expand Down
2 changes: 1 addition & 1 deletion Modules/_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ raise_errmsg(const char *msg, PyObject *s, Py_ssize_t end)
if (decoder == NULL) {
return;
}

_Py_IDENTIFIER(JSONDecodeError);
PyObject *JSONDecodeError = _PyObject_GetAttrId(decoder, &PyId_JSONDecodeError);
Py_DECREF(decoder);
Expand Down
2 changes: 1 addition & 1 deletion Modules/termios.c
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ static void termiosmodule_free(void *m) {
termiosmodule_clear((PyObject *)m);
}

static int
static int
termios_exec(PyObject *mod)
{
struct constant *constant = termios_constants;
Expand Down
2 changes: 1 addition & 1 deletion Objects/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ SyntaxError_init(PySyntaxErrorObject *self, PyObject *args, PyObject *kwds)
&self->end_lineno, &self->end_offset)) {
Py_DECREF(info);
return -1;
}
}

Py_INCREF(self->filename);
Py_INCREF(self->lineno);
Expand Down
2 changes: 1 addition & 1 deletion Objects/genericaliasobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ static PyGetSetDef ga_properties[] = {
};

/* A helper function to create GenericAlias' args tuple and set its attributes.
* Returns 1 on success, 0 on failure.
* Returns 1 on success, 0 on failure.
*/
static inline int
setup_ga(gaobject *alias, PyObject *origin, PyObject *args) {
Expand Down
2 changes: 1 addition & 1 deletion Parser/tokenizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ struct tok_state {
int async_def_nl; /* =1 if the outermost 'async def' had at least one
NEWLINE token after it. */
/* How to proceed when asked for a new token in interactive mode */
enum interactive_underflow_t interactive_underflow;
enum interactive_underflow_t interactive_underflow;
};

extern struct tok_state *PyTokenizer_FromString(const char *, int);
Expand Down
4 changes: 2 additions & 2 deletions Python/adaptive.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A family of instructions has the following fundamental properties:
* It has a single adaptive instruction that records an execution count and,
at regular intervals, attempts to specialize itself. If not specializing,
it executes the non-adaptive instruction.
* It has at least one specialized form of the instruction that is tailored
* It has at least one specialized form of the instruction that is tailored
for a particular value or set of values at runtime.
* All members of the family have access to the same number of cache entries.
Individual family members do not need to use all of the entries.
Expand Down Expand Up @@ -80,7 +80,7 @@ requiring judgement and experimentation to design the family of instructions.

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

Expand Down
2 changes: 1 addition & 1 deletion Tools/c-analyzer/c_parser/_state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def parse(srclines):
if isinstance(srclines, str): # a filename
raise NotImplementedError



# This only handles at most 10 nested levels.
#MATCHED_PARENS = textwrap.dedent(rf'''
Expand Down
2 changes: 1 addition & 1 deletion Tools/c-analyzer/c_parser/preprocessor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def get_file_preprocessor(filename):
macros = list(_resolve_file_values(filename, file_macros))
if file_incldirs:
incldirs = [v for v, in _resolve_file_values(filename, file_incldirs)]

def preprocess(**kwargs):
if file_macros and 'macros' not in kwargs:
kwargs['macros'] = macros
Expand Down

0 comments on commit 058fb35

Please sign in to comment.