diff mercurial/context.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 08cabecfa8a8
children aece3c9e62f1
line wrap: on
line diff
--- a/mercurial/context.py	Mon Mar 23 13:12:07 2009 +0100
+++ b/mercurial/context.py	Mon Mar 23 13:13:02 2009 +0100
@@ -233,7 +233,7 @@
 
     def __nonzero__(self):
         try:
-            n = self._filenode
+            self._filenode
             return True
         except error.LookupError:
             # file is missing