summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-10-19 15:04:38 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2014-10-19 15:04:38 (GMT)
commitf23530f5690d2e37bba7235a6398b2c386a5b485 (patch)
tree0e2ed390b1bc3007fa60dcc784f4ae3f3d21b1ff /Tools
parent0fc08fd2c7774a5521ae198b04639ec634fdb5c2 (diff)
downloadcpython-f23530f5690d2e37bba7235a6398b2c386a5b485.zip
cpython-f23530f5690d2e37bba7235a6398b2c386a5b485.tar.gz
cpython-f23530f5690d2e37bba7235a6398b2c386a5b485.tar.bz2
Issue #22186: Fix typos in Lib/.
Patch by FĂ©vry Thibault.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/clinic/clinic.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index 93e8f5a..65bad51 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.
@@ -3727,7 +3727,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.")
@@ -3923,7 +3923,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