jenkins-bot has submitted this change and it was merged.
Change subject: exclude redirects from CosmeticChangesToolkit.putSpacesInLists() ......................................................................
exclude redirects from CosmeticChangesToolkit.putSpacesInLists()
using APISite.redirectRegex(), a regex based on the internationalized magic word 'REDIRECT'
bug: 55161 Change-Id: Ic8ef2868ef9c55a1cec57a17f5601652918a62c7 --- M scripts/cosmetic_changes.py 1 file changed, 4 insertions(+), 5 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/cosmetic_changes.py b/scripts/cosmetic_changes.py index 2b67cfc..4a66fd4 100755 --- a/scripts/cosmetic_changes.py +++ b/scripts/cosmetic_changes.py @@ -66,7 +66,7 @@ """ # # (C) xqt, 2009-2013 -# (C) Pywikibot team, 2006-2013 +# (C) Pywikibot team, 2006-2014 # # Distributed under the terms of the MIT license. # @@ -584,10 +584,9 @@ German, and French Wikipedia. It might be that it is not wanted on other wikis. If there are any complaints, please file a bug report. """ - exceptions = ['comment', 'math', 'nowiki', 'pre', 'source', 'template', - 'timeline'] - if not (self.redirect or self.template) and \ - pywikibot.calledModuleName() != 'capitalize_redirects': + if not self.template: + exceptions = ['comment', 'math', 'nowiki', 'pre', 'source', 'template', + 'timeline', self.site.redirectRegex()] text = pywikibot.replaceExcept( text, r'(?m)^(?P<bullet>[:;]*(*+|#+)[:;*#]*)(?P<char>[^\s*#:;].+?)',
pywikibot-commits@lists.wikimedia.org