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

@ -1029,7 +1029,7 @@ class Function(Declaration):
@classmethod
def _raw_data(self, data):
# XXX finsh!
# XXX finish!
return data
@classmethod
@ -1255,7 +1255,7 @@ class Enum(TypeDeclaration):
@classmethod
def _raw_data(self, data):
# XXX finsih!
# XXX finish!
return data
@classmethod
@ -1296,12 +1296,12 @@ class Statement(HighlevelParsedItem):
@classmethod
def _resolve_data(cls, data):
# XXX finsih!
# XXX finish!
return data, None
@classmethod
def _raw_data(self, data):
# XXX finsih!
# XXX finish!
return data
@classmethod

View file

@ -7,7 +7,7 @@ valid C code.
Furthermore, the grammar rules for the C syntax (particularly as
described in the K&R book) actually describe a superset, of which the
full C langage is a proper subset. Here are some of the extra
full C language is a proper subset. Here are some of the extra
conditions that must be applied when parsing C code:
* ...
@ -90,7 +90,7 @@ Here are the cases where we've taken shortcuts or made assumptions:
* no "inline" type declarations (struct, union, enum) in function
parameters ~(including function pointers)~
* no "inline" type decls in function return types
* no superflous parentheses in declarators
* no superfluous parentheses in declarators
* var decls in for loops are always "simple" (e.g. no inline types)
* only inline struct/union/enum decls may be anonymouns (without a name)
* no function pointers in function pointer parameters

View file

@ -19,7 +19,7 @@ from . import (
logger = logging.getLogger(__name__)
# Supprted "source":
# Supported "source":
# * filename (string)
# * lines (iterable)
# * text (string)
@ -156,7 +156,7 @@ def handling_errors(ignore_exc=None, *, log_err=None):
# tools
_COMPILERS = {
# matching disutils.ccompiler.compiler_class:
# matching distutils.ccompiler.compiler_class:
'unix': _gcc.preprocess,
'msvc': None,
'cygwin': None,