similar: rename local variable to not collide with previous

Future patches will move the score function to the module level, so
let's not shadow that.
This commit is contained in:
Sean Farley 2017-01-07 20:43:49 -08:00
parent 25acd53e01
commit 3c1cbd7c9b

View File

@ -81,8 +81,8 @@ def _findsimilarmatches(repo, added, removed, threshold):
repo.ui.progress(_('searching'), None)
for dest, v in copies.iteritems():
source, score = v
yield source, dest, score
source, bscore = v
yield source, dest, bscore
def findrenames(repo, added, removed, threshold):
'''find renamed files -- yields (before, after, score) tuples'''