summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-10-06 17:55:16 (GMT)
committerGitHub <noreply@github.com>2021-10-06 17:55:16 (GMT)
commit682aecfdeba481c876bfc9f3796c635bd5b5df50 (patch)
tree51102e7170b805a9ae1916483ba04b2e0e7f4fe9 /Tools/scripts
parent0571b934f5f9198c3461a7b631d7073ac0a5676f (diff)
downloadcpython-682aecfdeba481c876bfc9f3796c635bd5b5df50.zip
cpython-682aecfdeba481c876bfc9f3796c635bd5b5df50.tar.gz
cpython-682aecfdeba481c876bfc9f3796c635bd5b5df50.tar.bz2
Fix typos in the Tools directory (GH-28769)
Like #28744 but for the Tools directory. [skip issue] Opening a related issue is pending python/psf-infra-meta#130 Automerge-Triggered-By: GH:pablogsal
Diffstat (limited to 'Tools/scripts')
-rw-r--r--Tools/scripts/dutree.doc2
-rwxr-xr-xTools/scripts/stable_abi.py8
2 files changed, 5 insertions, 5 deletions
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 @@ From the keyboard of flee@cs.psu.edu (Felix Lee):
: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.