Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 7874:d812029cda85
cleanup: drop variables for unused return values
They are unnecessary. I did leave them in localrepo.py where there is
something like:
_junk = foo()
_junk = None
to free memory early. I don't know if just `foo()` will free the return
value as early.
author | Peter Arrenbrecht <peter.arrenbrecht@gmail.com> |
---|---|
date | Mon, 23 Mar 2009 13:13:02 +0100 |
parents | 74c3baca65c9 |
children | 553aa0cbeab6 |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Mar 23 13:12:07 2009 +0100 +++ b/mercurial/commands.py Mon Mar 23 13:13:02 2009 +0100 @@ -894,7 +894,7 @@ ui.status(_("Checking templates...\n")) try: import templater - t = templater.templater(templater.templatepath("map-cmdline.default")) + templater.templater(templater.templatepath("map-cmdline.default")) except Exception, inst: ui.write(" %s\n" % inst) ui.write(_(" (templates seem to have been installed incorrectly)\n")) @@ -1690,8 +1690,8 @@ files = {} try: - fuzz = patch.patch(tmpname, ui, strip=strip, cwd=repo.root, - files=files) + patch.patch(tmpname, ui, strip=strip, cwd=repo.root, + files=files) finally: files = patch.updatedir(ui, repo, files, similarity=sim/100.) if not opts.get('no_commit'):