[Pywikipedia-l] SVN: [5763] trunk/pywikipedia/category.py
nicdumz at svn.wikimedia.org
nicdumz at svn.wikimedia.org
Sat Jul 26 12:22:14 UTC 2008
Revision: 5763
Author: nicdumz
Date: 2008-07-26 12:22:14 +0000 (Sat, 26 Jul 2008)
Log Message:
-----------
minor code cleanup
Modified Paths:
--------------
trunk/pywikipedia/category.py
Modified: trunk/pywikipedia/category.py
===================================================================
--- trunk/pywikipedia/category.py 2008-07-26 09:46:04 UTC (rev 5762)
+++ trunk/pywikipedia/category.py 2008-07-26 12:22:14 UTC (rev 5763)
@@ -608,10 +608,7 @@
reason = self.editSummary
else:
reason = wikipedia.translate(wikipedia.getSite(), self.deletion_reason_remove)
- if self.batchMode:
- self.cat.delete(reason, False)
- else:
- self.cat.delete(reason, True)
+ self.cat.delete(reason, not self.batchMode)
class CategoryTidyRobot:
"""
More information about the Pywikipedia-l
mailing list