summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-10-06 23:13:48 (GMT)
committerGitHub <noreply@github.com>2021-10-06 23:13:48 (GMT)
commit745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be (patch)
treecf25c5b8d353f69be8ba9b70963eabae044e4c76 /Lib/lib2to3
parentdb693df3e112c5a61f2cbef63eedce3a36520ded (diff)
downloadcpython-745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be.zip
cpython-745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be.tar.gz
cpython-745c9d9dfc1ad6fdfdf1d07420c6273ff67fa5be.tar.bz2
Fix typos in the Lib directory (GH-28775)
Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/lib2to3')
-rw-r--r--Lib/lib2to3/fixes/fix_metaclass.py2
-rw-r--r--Lib/lib2to3/fixes/fix_paren.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib2to3/fixes/fix_metaclass.py b/Lib/lib2to3/fixes/fix_metaclass.py
index d1cd10d..fe547b2 100644
--- a/Lib/lib2to3/fixes/fix_metaclass.py
+++ b/Lib/lib2to3/fixes/fix_metaclass.py
@@ -51,7 +51,7 @@ def fixup_parse_tree(cls_node):
# already in the preferred format, do nothing
return
- # !%@#! oneliners have no suite node, we have to fake one up
+ # !%@#! one-liners have no suite node, we have to fake one up
for i, node in enumerate(cls_node.children):
if node.type == token.COLON:
break
diff --git a/Lib/lib2to3/fixes/fix_paren.py b/Lib/lib2to3/fixes/fix_paren.py
index b205aa7..df3da5f 100644
--- a/Lib/lib2to3/fixes/fix_paren.py
+++ b/Lib/lib2to3/fixes/fix_paren.py
@@ -1,4 +1,4 @@
-"""Fixer that addes parentheses where they are required
+"""Fixer that adds parentheses where they are required
This converts ``[x for x in 1, 2]`` to ``[x for x in (1, 2)]``."""