diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2018-02-04 02:00:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-04 02:00:24 (GMT) |
commit | c90a5dec03fbef3a26479c800d5d6d15c44d5afb (patch) | |
tree | 6b0f79b280eec408940226df246dc05de4dd50c7 /Lib/test | |
parent | 0cb82eb7e58989693f9bec3596bbbec0256a3fca (diff) | |
download | cpython-c90a5dec03fbef3a26479c800d5d6d15c44d5afb.zip cpython-c90a5dec03fbef3a26479c800d5d6d15c44d5afb.tar.gz cpython-c90a5dec03fbef3a26479c800d5d6d15c44d5afb.tar.bz2 |
[3.6] bpo-32746: Fix multiple typos (GH-5144) (GH-5522)
Fix typos found by codespell in docs, docstrings, and comments.
Fixes for the following files were in post-3.6 code and not backported:
Lib/ctypes/_aix.py (new), Lib/test/test_concurrent_futures.py,
Modules/_asynciomodule.c, Modules/_pickle.c, Objects/obmalloc.c.
(cherry picked from commit c3d9508ff22ece9a96892b628dd5813e2fb0cd80)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/datetimetester.py | 2 | ||||
-rw-r--r-- | Lib/test/test_cmd.py | 4 | ||||
-rw-r--r-- | Lib/test/test_generators.py | 4 | ||||
-rw-r--r-- | Lib/test/test_weakref.py | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py index f23a530..96120c3 100644 --- a/Lib/test/datetimetester.py +++ b/Lib/test/datetimetester.py @@ -1709,7 +1709,7 @@ class TestDateTime(TestDate): # Make sure comparison doesn't forget microseconds, and isn't done # via comparing a float timestamp (an IEEE double doesn't have enough - # precision to span microsecond resolution across years 1 thru 9999, + # precision to span microsecond resolution across years 1 through 9999, # so comparing via timestamp necessarily calls some distinct values # equal). dt1 = self.theclass(MAXYEAR, 12, 31, 23, 59, 59, 999998) diff --git a/Lib/test/test_cmd.py b/Lib/test/test_cmd.py index dd8981f..bdcbb98 100644 --- a/Lib/test/test_cmd.py +++ b/Lib/test/test_cmd.py @@ -52,7 +52,7 @@ class samplecmdclass(cmd.Cmd): Test for the function completedefault(): >>> mycmd.completedefault() - This is the completedefault methode + This is the completedefault method >>> mycmd.completenames("a") ['add'] @@ -141,7 +141,7 @@ class samplecmdclass(cmd.Cmd): print("Hello from postloop") def completedefault(self, *ignored): - print("This is the completedefault methode") + print("This is the completedefault method") def complete_command(self): print("complete command") diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index b8d5bbe..d9ceeb5 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -1517,7 +1517,7 @@ class Knights: succs[final].remove(corner) add_to_successors(this) - # Generate moves 3 thru m*n-1. + # Generate moves 3 through m*n-1. def advance(len=len): # If some successor has only one exit, must take it. # Else favor successors with fewer exits. @@ -1539,7 +1539,7 @@ class Knights: yield i add_to_successors(i) - # Generate moves 3 thru m*n-1. Alternative version using a + # Generate moves 3 through m*n-1. Alternative version using a # stronger (but more expensive) heuristic to order successors. # Since the # of backtracking levels is m*n, a poor move early on # can take eons to undo. Smallest square board for which this diff --git a/Lib/test/test_weakref.py b/Lib/test/test_weakref.py index 43cf2c0..ec0f1d4 100644 --- a/Lib/test/test_weakref.py +++ b/Lib/test/test_weakref.py @@ -1637,7 +1637,7 @@ class MappingTestCase(TestBase): # has to keep looping to find the first object we delete. objs.reverse() - # Turn on mutation in C.__eq__. The first time thru the loop, + # Turn on mutation in C.__eq__. The first time through the loop, # under the iterkeys() business the first comparison will delete # the last item iterkeys() would see, and that causes a # RuntimeError: dictionary changed size during iteration |