diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-10-19 15:07:05 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-10-19 15:07:05 (GMT) |
commit | 1ed2e69a4ac1a4ac5a83ce3ab332b3051eaf59f0 (patch) | |
tree | 141b094c4dc7ce5297eb46e9ce881651abf9a71d /Tools/clinic/clinic.py | |
parent | 8c06ac5e5817fc7038c92115035107f9ff6c7a64 (diff) | |
parent | f23530f5690d2e37bba7235a6398b2c386a5b485 (diff) | |
download | cpython-1ed2e69a4ac1a4ac5a83ce3ab332b3051eaf59f0.zip cpython-1ed2e69a4ac1a4ac5a83ce3ab332b3051eaf59f0.tar.gz cpython-1ed2e69a4ac1a4ac5a83ce3ab332b3051eaf59f0.tar.bz2 |
Issue #22186: Fix typos in Lib/.
Patch by FĂ©vry Thibault.
Diffstat (limited to 'Tools/clinic/clinic.py')
-rwxr-xr-x | Tools/clinic/clinic.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 92edf6f..ee663e8 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -1015,7 +1015,7 @@ class CLanguage(Language): # when we're METH_O, but have a custom return converter, # we use "impl_parameters" for the parsing function # because that works better. but that means we must - # supress actually declaring the impl's parameters + # suppress actually declaring the impl's parameters # as variables in the parsing function. but since it's # METH_O, we have exactly one anyway, so we know exactly # where it is. @@ -3734,7 +3734,7 @@ class DSLParser: if self.keyword_only: fail("Function " + self.function.name + " mixes keyword-only and positional-only parameters, which is unsupported.") self.parameter_state = self.ps_seen_slash - # fixup preceeding parameters + # fixup preceding parameters for p in self.function.parameters.values(): if (p.kind != inspect.Parameter.POSITIONAL_OR_KEYWORD and not isinstance(p.converter, self_converter)): fail("Function " + self.function.name + " mixes keyword-only and positional-only parameters, which is unsupported.") @@ -3930,7 +3930,7 @@ class DSLParser: # for __init__. (it can't be, __init__ doesn't # have a docstring.) if this is an __init__ # (or __new__), then this signature is for - # calling the class to contruct a new instance. + # calling the class to construct a new instance. p_add('$') name = p.converter.signature_name or p.name |