http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11534
Revision: 11534 Author: xqt Date: 2013-05-15 04:20:42 +0000 (Wed, 15 May 2013) Log Message: ----------- update fixes at commons
Modified Paths: -------------- trunk/pywikipedia/cosmetic_changes.py
Modified: trunk/pywikipedia/cosmetic_changes.py =================================================================== --- trunk/pywikipedia/cosmetic_changes.py 2013-05-13 20:15:31 UTC (rev 11533) +++ trunk/pywikipedia/cosmetic_changes.py 2013-05-15 04:20:42 UTC (rev 11534) @@ -786,11 +786,11 @@ text = pywikibot.replaceExcept( text, r"([\r\n])== *[[Commons:Copyright tags|Licensing]]: *==", - r"\1== {{int:license}} ==", exceptions, True) + r"\1== {{int:license-header}} ==", exceptions, True) text = pywikibot.replaceExcept( text, - r"([\r\n])== *(Licensing|License information|{{int:license-header}}) *==", - r"\1== {{int:license}} ==", exceptions, True) + r"([\r\n])== *(Licensing|License information|{{int:license}}) *==", + r"\1== {{int:license-header}} ==", exceptions, True)
# frequent field values to {{int:}} versions text = pywikibot.replaceExcept( @@ -820,8 +820,8 @@ r'\1== {{int:filedesc}} ==', exceptions, True) text = pywikibot.replaceExcept( text, - r'([\r\n]|^)== *{{int:license}} *==(?:[\r\n ]*)== *{{int:license}} *==', - r'\1== {{int:license}} ==', exceptions, True) + r'([\r\n]|^)== *{{int:license-header}} *==(?:[\r\n ]*)== *{{int:license-header}} *==', + r'\1== {{int:license-header}} ==', exceptions, True) return text