diff hgext/patchbomb.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 bd8f44638847
children 5ac1a72e5b74
line wrap: on
line diff
--- a/hgext/patchbomb.py	Mon Mar 23 13:12:07 2009 +0100
+++ b/hgext/patchbomb.py	Mon Mar 23 13:13:02 2009 +0100
@@ -230,8 +230,8 @@
     def getpatches(revs):
         for r in cmdutil.revrange(repo, revs):
             output = cStringIO.StringIO()
-            p = patch.export(repo, [r], fp=output,
-                             opts=patch.diffopts(ui, opts))
+            patch.export(repo, [r], fp=output,
+                         opts=patch.diffopts(ui, opts))
             yield output.getvalue().split('\n')
 
     def getbundle(dest):