[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/dutree.doc b/Tools/scripts/dutree.doc
index 97bd2e2..490126b 100644
--- a/Tools/scripts/dutree.doc
+++ b/Tools/scripts/dutree.doc
@@ -15,7 +15,7 @@
:And Perl is definitely awkward with data types. I haven't yet found a
:pleasant way of shoving non-trivial data types into Perl's grammar.
-Yes, it's pretty aweful at that, alright. Sometimes I write perl programs
+Yes, it's pretty awful at that, alright. Sometimes I write perl programs
that need them, and sometimes it just takes a little creativity. But
sometimes it's not worth it. I actually wrote a C program the other day
(gasp) because I didn't want to deal with a game matrix with six links per node.
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.