##// END OF EJS Templates
cleanup: name unused variables using convention of leading _...
Mads Kiilerich -
r22204:f8dc6599 default
parent child Browse files
Show More
@@ -24,7 +24,7 def active(func):
24 return _active
24 return _active
25
25
26 def _playback(journal, report, opener, entries, backupentries, unlink=True):
26 def _playback(journal, report, opener, entries, backupentries, unlink=True):
27 for f, o, ignore in entries:
27 for f, o, _ignore in entries:
28 if o or not unlink:
28 if o or not unlink:
29 try:
29 try:
30 fp = opener(f, 'a')
30 fp = opener(f, 'a')
@@ -41,7 +41,7 def _playback(journal, report, opener, e
41 raise
41 raise
42
42
43 backupfiles = []
43 backupfiles = []
44 for f, b, ignore in backupentries:
44 for f, b, _ignore in backupentries:
45 filepath = opener.join(f)
45 filepath = opener.join(f)
46 backuppath = opener.join(b)
46 backuppath = opener.join(b)
47 try:
47 try:
@@ -265,7 +265,7 class transaction(object):
265 self.opener.unlink(self.journal)
265 self.opener.unlink(self.journal)
266 if self.opener.isfile(self.backupjournal):
266 if self.opener.isfile(self.backupjournal):
267 self.opener.unlink(self.backupjournal)
267 self.opener.unlink(self.backupjournal)
268 for f, b, _ignore in self.backupentries:
268 for _f, b, _ignore in self.backupentries:
269 self.opener.unlink(b)
269 self.opener.unlink(b)
270 self.backupentries = []
270 self.backupentries = []
271 self.journal = None
271 self.journal = None
General Comments 0
You need to be logged in to leave comments. Login now