similar: rename local variable to not collide with previous
authorSean Farley <sean@farley.io>
Sat, 07 Jan 2017 20:43:49 -0800
changeset 30791 ada160a8cfd8
parent 30790 dbcc10cf7f8d
child 30792 4215dc1b708b
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.
mercurial/similar.py
--- 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'''