Skip to content

Commit 081e18e

Browse files
committed
minor edit
1 parent 2632c42 commit 081e18e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/difflib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2718,14 +2718,14 @@ def _calc_candidate_score(block0, block1, block2):
27182718
Otherwise, it gets bonus for each additional block
27192719
as it has poential to recurse further to each side
27202720
"""
2721-
k0 = block0[2]
27222721
k1 = block1[2]
2723-
k2 = block2[2]
27242722
if not k1:
27252723
raise ValueError('Middle block should not be null')
27262724
lengths = [k1]
2725+
k0 = block0[2]
27272726
if k0:
27282727
lengths.append(k0)
2728+
k2 = block2[2]
27292729
if k2:
27302730
lengths.append(k2)
27312731
total = sum(k**_BALANCE_SCORE_POWER for k in lengths)

0 commit comments

Comments
 (0)