http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11132
Revision: 11132 Author: legoktm Date: 2013-02-26 23:28:30 +0000 (Tue, 26 Feb 2013) Log Message: ----------- Use set.union() since you cannot + two sets
Modified Paths: -------------- branches/rewrite/scripts/category.py
Modified: branches/rewrite/scripts/category.py =================================================================== --- branches/rewrite/scripts/category.py 2013-02-26 08:06:40 UTC (rev 11131) +++ branches/rewrite/scripts/category.py 2013-02-26 23:28:30 UTC (rev 11132) @@ -491,7 +491,7 @@ def run(self): setOfArticles = set(self.cat.articles(recurse = self.recurse)) if self.subCats: - setOfArticles += set(self.cat.subcategories()) + setOfArticles = setOfArticles.union(set(self.cat.subcategories())) if not self.editSummary: self.editSummary = i18n.twtranslate(self.site, 'category-listifying',
pywikipedia-svn@lists.wikimedia.org