diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-17 12:43:51 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-17 12:43:51 (GMT) |
commit | f5469cff1f90381819291bcddcc70f5aaf2da141 (patch) | |
tree | f61191eac7db34346674d3b5dca6cfc334dcca99 /Lib/difflib.py | |
parent | 10b513098af5323bc2e9dee4775531eb63c1f0ab (diff) | |
download | cpython-f5469cff1f90381819291bcddcc70f5aaf2da141.zip cpython-f5469cff1f90381819291bcddcc70f5aaf2da141.tar.gz cpython-f5469cff1f90381819291bcddcc70f5aaf2da141.tar.bz2 |
#18705: fix a number of typos. Patch by Févry Thibault.
Diffstat (limited to 'Lib/difflib.py')
-rw-r--r-- | Lib/difflib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/difflib.py b/Lib/difflib.py index 3bbcb76..f94b3ac 100644 --- a/Lib/difflib.py +++ b/Lib/difflib.py @@ -586,7 +586,7 @@ class SequenceMatcher: def get_grouped_opcodes(self, n=3): """ Isolate change clusters by eliminating ranges with no changes. - Return a generator of groups with upto n lines of context. + Return a generator of groups with up to n lines of context. Each group is in the same format as returned by get_opcodes(). >>> from pprint import pprint @@ -1361,7 +1361,7 @@ def _mdiff(fromlines, tolines, context=None, linejunk=None, linejunk -- passed on to ndiff (see ndiff documentation) charjunk -- passed on to ndiff (see ndiff documentation) - This function returns an interator which returns a tuple: + This function returns an iterator which returns a tuple: (from line tuple, to line tuple, boolean flag) from/to line tuple -- (line num, line text) @@ -1963,7 +1963,7 @@ class HtmlDiff(object): self._make_prefix() # change tabs to spaces before it gets more difficult after we insert - # markkup + # markup fromlines,tolines = self._tab_newline_replace(fromlines,tolines) # create diffs iterator which generates side by side from/to data |