Skip to content

Commit 0a78769

Browse files
committed
minor change
1 parent 494c815 commit 0a78769

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Lib/difflib.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
r"""
2-
{{TOCREG:(?m)^###\s+(?P<title>[^\n]*).*$}}
3-
{{TOC}}
4-
1+
"""
52
Module difflib -- helpers for computing deltas between objects.
63
74
Function get_close_matches(word, possibilities, n=3, cutoff=0.6):
@@ -2865,7 +2862,7 @@ def _get_matching_blocks(self):
28652862
i, j, k = init_block = self.find_longest_match(*bounds)
28662863
elif dtype is _RANGEWITHBLOCK:
28672864
# Range & pre-evaluated block
2868-
init_block, bounds = data
2865+
bounds, init_block = data
28692866
i, j, k = init_block
28702867
else:
28712868
msg = 'Unknown data type: {!r}'
@@ -3015,9 +3012,9 @@ def _get_matching_blocks(self):
30153012
# Try quick evaluation without re-building
30163013
# Before cache was overriden
30173014
_bounds = data
3018-
x = self.find_longest_match(*_bounds, quick_only=True)
3019-
if x is not None:
3020-
q.append((_RANGEWITHBLOCK, d, (x, _bounds)))
3015+
block = self.find_longest_match(*_bounds, quick_only=True)
3016+
if block is not None:
3017+
q.append((_RANGEWITHBLOCK, d, (_bounds, block)))
30213018
else:
30223019
q.append((dtype, d, data))
30233020
else:

0 commit comments

Comments
 (0)