2 Jan 2010 13:59
SVN: [7850] trunk/pywikipedia/cosmetic_changes.py
Revision: 7850
Author: xqt
Date: 2010-01-02 12:59:20 +0000 (Sat, 02 Jan 2010)
Log Message:
-----------
empty list/dict is not None
Modified Paths:
--------------
trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py
===================================================================
--- trunk/pywikipedia/cosmetic_changes.py 2009-12-31 17:56:33 UTC (rev 7849)
+++ trunk/pywikipedia/cosmetic_changes.py 2010-01-02 12:59:20 UTC (rev 7850)
<at> <at> -318,20 +318,20 <at> <at>
if self.site.language()=='nn':
regex = re.compile('(<!-- ?interwiki \(no(/nb)?, ?sv, ?da first; then other languages alphabetically
by name\) ?-->)')
found = regex.findall(text)
- if found != []:
+ if found:
if pywikibot.verbose:
print found
hasCommentLine = True
text = regex.sub('', text)
# Adding categories
- if categories != None:
(Continue reading)
RSS Feed