Revision: 6761 Author: nicdumz Date: 2009-04-30 08:08:00 +0000 (Thu, 30 Apr 2009)
Log Message: ----------- Move the cleanup bits in a Subject.clean() function, and make sure it is called after finish(), even if finish() returns early.
Modified Paths: -------------- trunk/pywikipedia/interwiki.py
Modified: trunk/pywikipedia/interwiki.py =================================================================== --- trunk/pywikipedia/interwiki.py 2009-04-30 04:52:44 UTC (rev 6760) +++ trunk/pywikipedia/interwiki.py 2009-04-30 08:08:00 UTC (rev 6761) @@ -1410,6 +1410,7 @@ if config.interwiki_backlink: self.reportBacklinks(new, updatedSites)
+ def clean(self): """ Delete the contents that are stored on disk for this Subject.
@@ -1822,6 +1823,7 @@ subj = self.subjects[i] if subj.isDone(): subj.finish(self) + subj.clean() del self.subjects[i]
def isDone(self):