summaryrefslogtreecommitdiffstats
path: root/Lib/difflib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-06-21 18:59:46 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-06-21 18:59:46 (GMT)
commit986efa074e26ae135387dcbba013503fd718fac7 (patch)
treefc442197fa8605a2b03a318787ab54b106522af2 /Lib/difflib.py
parent47177861dd7995b4cd27acb9757f0e804e3f06e4 (diff)
parentfabefc3c5b9e174e4eef2cb351a6ed8c81d721b0 (diff)
downloadcpython-986efa074e26ae135387dcbba013503fd718fac7.zip
cpython-986efa074e26ae135387dcbba013503fd718fac7.tar.gz
cpython-986efa074e26ae135387dcbba013503fd718fac7.tar.bz2
merge
Diffstat (limited to 'Lib/difflib.py')
-rw-r--r--Lib/difflib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/difflib.py b/Lib/difflib.py
index 48d7e57..4af88a9 100644
--- a/Lib/difflib.py
+++ b/Lib/difflib.py
@@ -511,8 +511,8 @@ class SequenceMatcher:
non_adjacent.append((i1, j1, k1))
non_adjacent.append( (la, lb, 0) )
- self.matching_blocks = non_adjacent
- return map(Match._make, self.matching_blocks)
+ self.matching_blocks = list(map(Match._make, non_adjacent))
+ return self.matching_blocks
def get_opcodes(self):
"""Return list of 5-tuples describing how to turn a into b.