diff mercurial/keepalive.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 2b901f9b37aa
children 553aa0cbeab6
line wrap: on
line diff
--- a/mercurial/keepalive.py	Mon Mar 23 13:12:07 2009 +0100
+++ b/mercurial/keepalive.py	Mon Mar 23 13:13:02 2009 +0100
@@ -494,7 +494,7 @@
         HANDLE_ERRORS = i
         try:
             fo = urllib2.urlopen(url)
-            foo = fo.read()
+            fo.read()
             fo.close()
             try: status, reason = fo.status, fo.reason
             except AttributeError: status, reason = None, None