Revision: 5918 Author: multichill Date: 2008-09-26 12:23:06 +0000 (Fri, 26 Sep 2008)
Log Message: ----------- Do a dummy edit on every category to clean up [[Category:Non-empty category redirects]] (also the categories in cooldown, they might be empty).
Modified Paths: -------------- trunk/pywikipedia/commons_category_redirect.py
Modified: trunk/pywikipedia/commons_category_redirect.py =================================================================== --- trunk/pywikipedia/commons_category_redirect.py 2008-09-24 15:26:18 UTC (rev 5917) +++ trunk/pywikipedia/commons_category_redirect.py 2008-09-26 12:23:06 UTC (rev 5918) @@ -75,11 +75,11 @@ catlib.change_category(cat, old_category, destination, move_message % (old_category.title(), old_category.titleWithoutNamespace(), destination.title(), destination.titleWithoutNamespace())) except wikipedia.IsRedirectPage: wikipedia.output(page.title() + u' is a redirect!') - #Dummy edit to refresh the page, shouldnt show up in any logs. - try: - old_category.put(old_category.get()) - except: - wikipedia.output(u'Dummy edit at ' + old_category.title() + u' failed') + #Dummy edit to refresh the page, shouldnt show up in any logs. + try: + old_category.put(old_category.get()) + except: + wikipedia.output(u'Dummy edit at ' + old_category.title() + u' failed')
if __name__ == "__main__": try: