mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[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 682aecfdeb)
Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
ccd82a0800
commit
03bf55d8cf
15 changed files with 24 additions and 24 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue