summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/fixes
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-08-17 13:11:40 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-08-17 13:11:40 (GMT)
commitb5bc353b8893461b0ecdf0e4bc2b299ef2b19bc0 (patch)
treefecebf5a3c00ff7f3194ff1296e4cb26468634f0 /Lib/lib2to3/fixes
parent9ff79f7c46fc13bb0855d33ab75acd578a950abf (diff)
downloadcpython-b5bc353b8893461b0ecdf0e4bc2b299ef2b19bc0.zip
cpython-b5bc353b8893461b0ecdf0e4bc2b299ef2b19bc0.tar.gz
cpython-b5bc353b8893461b0ecdf0e4bc2b299ef2b19bc0.tar.bz2
#18741: fix more typos. Patch by FĂ©vry Thibault.
Diffstat (limited to 'Lib/lib2to3/fixes')
-rw-r--r--Lib/lib2to3/fixes/fix_itertools.py4
-rw-r--r--Lib/lib2to3/fixes/fix_metaclass.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/lib2to3/fixes/fix_itertools.py b/Lib/lib2to3/fixes/fix_itertools.py
index 63346b9..8e78d6c 100644
--- a/Lib/lib2to3/fixes/fix_itertools.py
+++ b/Lib/lib2to3/fixes/fix_itertools.py
@@ -34,8 +34,8 @@ class FixItertools(fixer_base.BaseFix):
# Remove the 'itertools'
prefix = it.prefix
it.remove()
- # Replace the node wich contains ('.', 'function') with the
- # function (to be consistant with the second part of the pattern)
+ # Replace the node which contains ('.', 'function') with the
+ # function (to be consistent with the second part of the pattern)
dot.remove()
func.parent.replace(func)
diff --git a/Lib/lib2to3/fixes/fix_metaclass.py b/Lib/lib2to3/fixes/fix_metaclass.py
index 7d4d002..d4f99a3 100644
--- a/Lib/lib2to3/fixes/fix_metaclass.py
+++ b/Lib/lib2to3/fixes/fix_metaclass.py
@@ -71,7 +71,7 @@ def fixup_parse_tree(cls_node):
def fixup_simple_stmt(parent, i, stmt_node):
""" if there is a semi-colon all the parts count as part of the same
simple_stmt. We just want the __metaclass__ part so we move
- everything efter the semi-colon into its own simple_stmt node
+ everything after the semi-colon into its own simple_stmt node
"""
for semi_ind, node in enumerate(stmt_node.children):
if node.type == token.SEMI: # *sigh*