Skip to content

Commit

Permalink
Rename parameter to something meaningful
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Jul 17, 2024
1 parent 7f354bd commit 7ebab59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ def linksync(self, repo, srcdirs=None):
# destfiles is a list of (link_target_base, link_target_dir) tuples
destfiles.sort()

def keyfunc(x):
def keyfunc(key):
# compare the basenames
return x[0]
return key[0]

changed = False
for srcfile, destfile in synciter(srcfiles, destfiles, key=keyfunc):
Expand Down

0 comments on commit 7ebab59

Please sign in to comment.