cleanup: name unused variables using convention of leading _
authorMads Kiilerich <madski@unity3d.com>
Fri, 15 Aug 2014 04:37:46 +0200
changeset 22204 f8dc6599da5d
parent 22203 35c2ea4ca26f
child 22205 9fa429723f26
cleanup: name unused variables using convention of leading _ This helps checker tools ... and readability for those who knows and follows the convention.
mercurial/transaction.py
--- a/mercurial/transaction.py	Fri Aug 15 16:20:47 2014 +0200
+++ b/mercurial/transaction.py	Fri Aug 15 04:37:46 2014 +0200
@@ -24,7 +24,7 @@
     return _active
 
 def _playback(journal, report, opener, entries, backupentries, unlink=True):
-    for f, o, ignore in entries:
+    for f, o, _ignore in entries:
         if o or not unlink:
             try:
                 fp = opener(f, 'a')
@@ -41,7 +41,7 @@
                     raise
 
     backupfiles = []
-    for f, b, ignore in backupentries:
+    for f, b, _ignore in backupentries:
         filepath = opener.join(f)
         backuppath = opener.join(b)
         try:
@@ -265,7 +265,7 @@
             self.opener.unlink(self.journal)
         if self.opener.isfile(self.backupjournal):
             self.opener.unlink(self.backupjournal)
-            for f, b, _ignore in self.backupentries:
+            for _f, b, _ignore in self.backupentries:
                 self.opener.unlink(b)
         self.backupentries = []
         self.journal = None