Skip to content

Fix typos in >60 files using codespell & manual review to get rid of false positives #136887

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
done
  • Loading branch information
corneliusroemer committed Jul 20, 2025
commit 96a5a0b2094b85aca0fb38b1f6f3fd8bcd5b1cff
2 changes: 1 addition & 1 deletion Python/remote_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ _Py_RemoteDebug_PagedReadRemoteMemory(proc_handle_t *handle,
}

if (_Py_RemoteDebug_ReadRemoteMemory(handle, page_base, page_size, entry->data) < 0) {
// Try to just copy the exact ammount as a fallback
// Try to just copy the exact amount as a fallback
PyErr_Clear();
goto fallback;
}
Expand Down
2 changes: 1 addition & 1 deletion Python/specialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -2544,7 +2544,7 @@ static _PyBinaryOpSpecializationDescr binaryop_extend_descrs[] = {
{NB_INPLACE_AND, compactlongs_guard, compactlongs_and},
{NB_INPLACE_XOR, compactlongs_guard, compactlongs_xor},

/* float-long arithemetic */
/* float-long arithmetic */
{NB_ADD, float_compactlong_guard, float_compactlong_add},
{NB_SUBTRACT, float_compactlong_guard, float_compactlong_subtract},
{NB_TRUE_DIVIDE, nonzero_float_compactlong_guard, float_compactlong_true_div},
Expand Down
2 changes: 1 addition & 1 deletion Tools/build/generate-build-details.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def make_paths_relative(data: dict[str, Any], config_path: str | None = None) ->
continue
# Get the relative path
new_path = os.path.relpath(current_path, data['base_prefix'])
# Join '.' so that the path is formated as './path' instead of 'path'
# Join '.' so that the path is formatted as './path' instead of 'path'
new_path = os.path.join('.', new_path)
container[child] = new_path

Expand Down
2 changes: 1 addition & 1 deletion Tools/cases_generator/tier1_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def generate_tier1_labels(
analysis: Analysis, emitter: Emitter
) -> None:
emitter.emit("\n")
# Emit tail-callable labels as function defintions
# Emit tail-callable labels as function definitions
for name, label in analysis.labels.items():
emitter.emit(f"LABEL({name})\n")
storage = Storage(Stack(), [], [], 0, False)
Expand Down
6 changes: 3 additions & 3 deletions Tools/peg_generator/pegen/grammar_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ def print_nodes_recursively(self, node: Rule, prefix: str = "", istail: bool = T
value = self.name(node)

line = prefix + ("└──" if istail else "├──") + value + "\n"
sufix = " " if istail else "│ "
suffix = " " if istail else "│ "

if not children:
return line

*children, last = children
for child in children:
line += self.print_nodes_recursively(child, prefix + sufix, False)
line += self.print_nodes_recursively(last, prefix + sufix, True)
line += self.print_nodes_recursively(child, prefix + suffix, False)
line += self.print_nodes_recursively(last, prefix + suffix, True)

return line

Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy