[3.10] Fix typos in the Tools directory (GH-28769) (GH-28801)
Like GH-28744 but for the Tools directory.
Automerge-Triggered-By: GH:pablogsal
(cherry picked from commit 682aecfdeba481c876bfc9f3796c635bd5b5df50)
Co-authored-by: Christian Clauss <cclauss@me.com>
diff --git a/Tools/scripts/stable_abi.py b/Tools/scripts/stable_abi.py
index b7fd2c8..6d70340 100755
--- a/Tools/scripts/stable_abi.py
+++ b/Tools/scripts/stable_abi.py
@@ -67,7 +67,7 @@ class Manifest:
def add(self, item):
if item.name in self.contents:
# We assume that stable ABI items do not share names,
- # even if they're diferent kinds (e.g. function vs. macro).
+ # even if they're different kinds (e.g. function vs. macro).
raise ValueError(f'duplicate ABI item {item.name}')
self.contents[item.name] = item
@@ -295,7 +295,7 @@ def do_unixy_check(manifest, args):
present_macros = gcc_get_limited_api_macros(['Include/Python.h'])
feature_defines = manifest.feature_defines & present_macros
- # Check that we have all neded macros
+ # Check that we have all needed macros
expected_macros = set(
item.name for item in manifest.select({'macro'})
)
@@ -412,7 +412,7 @@ def binutils_check_library(manifest, library, expected_symbols, dynamic):
def gcc_get_limited_api_macros(headers):
"""Get all limited API macros from headers.
- Runs the preprocesor over all the header files in "Include" setting
+ Runs the preprocessor over all the header files in "Include" setting
"-DPy_LIMITED_API" to the correct value for the running version of the
interpreter and extracting all macro definitions (via adding -dM to the
compiler arguments).
@@ -449,7 +449,7 @@ def gcc_get_limited_api_macros(headers):
def gcc_get_limited_api_definitions(headers):
"""Get all limited API definitions from headers.
- Run the preprocesor over all the header files in "Include" setting
+ Run the preprocessor over all the header files in "Include" setting
"-DPy_LIMITED_API" to the correct value for the running version of the
interpreter.