Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.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 | 4a4c7f6a5912 |
children | c63c30ae9e39 |
line wrap: on
line diff
--- a/mercurial/revlog.py Mon Mar 23 13:12:07 2009 +0100 +++ b/mercurial/revlog.py Mon Mar 23 13:13:02 2009 +0100 @@ -835,7 +835,7 @@ # odds of a binary node being all hex in ASCII are 1 in 10**25 try: node = id - r = self.rev(node) # quick search the index + self.rev(node) # quick search the index return node except LookupError: pass # may be partial hex id @@ -855,7 +855,7 @@ try: # a full hex nodeid? node = bin(id) - r = self.rev(node) + self.rev(node) return node except (TypeError, LookupError): pass