Revision: 8387
Author: xqt
Date: 2010-08-07 13:37:23 +0000 (Sat, 07 Aug 2010)
Log Message:
-----------
regex fix for nn-comment
Modified Paths:
--------------
trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py
===================================================================
--- trunk/pywikipedia/cosmetic_changes.py 2010-08-07 13:35:28 UTC (rev
8386)
+++ trunk/pywikipedia/cosmetic_changes.py 2010-08-07 13:37:23 UTC (rev
8387)
@@ -372,7 +372,7 @@
# nn got a message between the categories and the iw's
# and they want to keep it there, first remove it
if self.site.language()=='nn':
- regex = re.compile('(<!-- ?interwiki \(no(/nb)?, ?sv, ?da first;
then other languages alphabetically by name\) ?-->)')
+ regex = re.compile('(<!-- ?interwiki \(no(?:/nb)?, ?sv, ?da first;
then other languages alphabetically by name\) ?-->)')
found = regex.findall(text)
if found:
if pywikibot.verbose:
_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn