mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
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:
parent
0571b934f5
commit
682aecfdeb
15 changed files with 24 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue