summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3
diff options
context:
space:
mode:
authorMin ho Kim <minho42@gmail.com>2019-07-30 22:16:13 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2019-07-30 22:16:13 (GMT)
commitc4cacc8c5eab50db8da3140353596f38a01115ca (patch)
tree9198db7e2525d0f113823faee4b6d4ac7136a633 /Lib/lib2to3
parent0acb646b8e405864224bfd6d7d5089980dea63ac (diff)
downloadcpython-c4cacc8c5eab50db8da3140353596f38a01115ca.zip
cpython-c4cacc8c5eab50db8da3140353596f38a01115ca.tar.gz
cpython-c4cacc8c5eab50db8da3140353596f38a01115ca.tar.bz2
Fix typos in comments, docs and test names (#15018)
* Fix typos in comments, docs and test names * Update test_pyparse.py account for change in string length * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Apply suggestion: Dealloccte -> Deallocate Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu> * Update posixmodule checksum. * Reverse idlelib changes.
Diffstat (limited to 'Lib/lib2to3')
-rw-r--r--Lib/lib2to3/fixer_util.py2
-rw-r--r--Lib/lib2to3/tests/test_parser.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib2to3/fixer_util.py b/Lib/lib2to3/fixer_util.py
index babe6cb..c2a3a47 100644
--- a/Lib/lib2to3/fixer_util.py
+++ b/Lib/lib2to3/fixer_util.py
@@ -412,7 +412,7 @@ def _find(name, node):
return None
def _is_import_binding(node, name, package=None):
- """ Will reuturn node if node will import name, or node
+ """ Will return node if node will import name, or node
will import * from package. None is returned otherwise.
See test cases for examples. """
diff --git a/Lib/lib2to3/tests/test_parser.py b/Lib/lib2to3/tests/test_parser.py
index 01b2b51..f22d399 100644
--- a/Lib/lib2to3/tests/test_parser.py
+++ b/Lib/lib2to3/tests/test_parser.py
@@ -531,7 +531,7 @@ class TestSetLiteral(GrammarTest):
# Adapted from Python 3's Lib/test/test_unicode_identifiers.py and
# Lib/test/test_tokenize.py:TokenizeTest.test_non_ascii_identifiers
-class TestIdentfier(GrammarTest):
+class TestIdentifier(GrammarTest):
def test_non_ascii_identifiers(self):
self.validate("Örter = 'places'\ngrün = 'green'")
self.validate("蟒 = a蟒 = 锦蛇 = 1")