[meld] matchers.myers: Rename a variable
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] matchers.myers: Rename a variable
- Date: Sun, 31 Dec 2017 20:14:55 +0000 (UTC)
commit ccedfedcabcec2340dfe5c33cf5089fc74c63323
Author: Kai Willadsen <kai willadsen gmail com>
Date: Mon Dec 18 07:24:46 2017 +1000
matchers.myers: Rename a variable
meld/matchers/myers.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/meld/matchers/myers.py b/meld/matchers/myers.py
index 52e52ef7..a5f06256 100644
--- a/meld/matchers/myers.py
+++ b/meld/matchers/myers.py
@@ -376,15 +376,15 @@ class SyncPointMyersSequenceMatcher(MyersSequenceMatcher):
for i in matcher.initialise():
yield None
blocks = matcher.get_matching_blocks()
- l = len(matching_blocks) - 1
- if l >= 0 and len(blocks) > 1:
- aj = matching_blocks[l][0]
- bj = matching_blocks[l][1]
- bl = matching_blocks[l][2]
+ mb_len = len(matching_blocks) - 1
+ if mb_len >= 0 and len(blocks) > 1:
+ aj = matching_blocks[mb_len][0]
+ bj = matching_blocks[mb_len][1]
+ bl = matching_blocks[mb_len][2]
if (aj + bl == ai and bj + bl == bi and
blocks[0][0] == 0 and blocks[0][1] == 0):
block = blocks.pop(0)
- matching_blocks[l] = (aj, bj, bl + block[2])
+ matching_blocks[mb_len] = (aj, bj, bl + block[2])
for x, y, l in blocks[:-1]:
matching_blocks.append((ai + x, bi + y, l))
self.matching_blocks.extend(matching_blocks)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]