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.
--- a/mercurial/similar.py Mon Jan 09 10:59:45 2017 -0800
+++ b/mercurial/similar.py Sat Jan 07 20:43:49 2017 -0800
@@ -81,8 +81,8 @@
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'''