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
This commit is contained in:
Christian Clauss 2021-10-06 19:55:16 +02:00 committed by GitHub
parent 0571b934f5
commit 682aecfdeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 24 additions and 24 deletions

View file

@ -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.