http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9280
Revision: 9280 Author: xqt Date: 2011-05-29 09:43:35 +0000 (Sun, 29 May 2011) Log Message: ----------- cosmetic changes PEP8
Modified Paths: -------------- trunk/pywikipedia/pywikibot/textlib.py
Modified: trunk/pywikipedia/pywikibot/textlib.py =================================================================== --- trunk/pywikipedia/pywikibot/textlib.py 2011-05-29 09:43:01 UTC (rev 9279) +++ trunk/pywikipedia/pywikibot/textlib.py 2011-05-29 09:43:35 UTC (rev 9280) @@ -621,12 +621,12 @@ % (catNamespace, title), re.I | re.M) if newcat is None: """ First go through and try the more restrictive regex that removes - an entire line, if the category is the only thing on that line (this - prevents blank lines left over in category lists following a removal.) + an entire line, if the category is the only thing on that line (this + prevents blank lines left over in category lists following a removal.) """
text = replaceExcept(oldtext, categoryRN, '', - ['nowiki', 'comment', 'math', 'pre', 'source']) + ['nowiki', 'comment', 'math', 'pre', 'source']) text = replaceExcept(text, categoryR, '', ['nowiki', 'comment', 'math', 'pre', 'source']) else:
pywikipedia-svn@lists.wikimedia.org