summaryrefslogtreecommitdiffstats
path: root/Lib/difflib.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-08-17 12:53:55 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-08-17 12:53:55 (GMT)
commit9a3777e525b389ec5881c3f80a482fb821ab3ea5 (patch)
treee83520348eea751f2b02e8effa76f3cce2c644cd /Lib/difflib.py
parent07351a044960f259c8730de3f81356fbcdbe2bbf (diff)
parent30b9d5d3af043fc2687ad11a188a34fe355e20ef (diff)
downloadcpython-9a3777e525b389ec5881c3f80a482fb821ab3ea5.zip
cpython-9a3777e525b389ec5881c3f80a482fb821ab3ea5.tar.gz
cpython-9a3777e525b389ec5881c3f80a482fb821ab3ea5.tar.bz2
#18705: merge with 3.3.
Diffstat (limited to 'Lib/difflib.py')
-rw-r--r--Lib/difflib.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/difflib.py b/Lib/difflib.py
index 8097744..159cbe4 100644
--- a/Lib/difflib.py
+++ b/Lib/difflib.py
@@ -575,7 +575,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
@@ -1344,7 +1344,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)
@@ -1946,7 +1946,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