|
1 | | -r""" |
2 | | -{{TOCREG:(?m)^###\s+(?P<title>[^\n]*).*$}} |
3 | | -{{TOC}} |
4 | | -
|
| 1 | +""" |
5 | 2 | Module difflib -- helpers for computing deltas between objects. |
6 | 3 |
|
7 | 4 | Function get_close_matches(word, possibilities, n=3, cutoff=0.6): |
@@ -2865,7 +2862,7 @@ def _get_matching_blocks(self): |
2865 | 2862 | i, j, k = init_block = self.find_longest_match(*bounds) |
2866 | 2863 | elif dtype is _RANGEWITHBLOCK: |
2867 | 2864 | # Range & pre-evaluated block |
2868 | | - init_block, bounds = data |
| 2865 | + bounds, init_block = data |
2869 | 2866 | i, j, k = init_block |
2870 | 2867 | else: |
2871 | 2868 | msg = 'Unknown data type: {!r}' |
@@ -3015,9 +3012,9 @@ def _get_matching_blocks(self): |
3015 | 3012 | # Try quick evaluation without re-building |
3016 | 3013 | # Before cache was overriden |
3017 | 3014 | _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))) |
3021 | 3018 | else: |
3022 | 3019 | q.append((dtype, d, data)) |
3023 | 3020 | else: |
|
0 commit comments