jenkins-bot has submitted this change and it was merged.
Change subject: [PEP8] changes ......................................................................
[PEP8] changes
Change-Id: Ia93e76d36a40a85b3f443ed64a1c49023a6fa2d4 --- M cosmetic_changes.py 1 file changed, 7 insertions(+), 4 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/cosmetic_changes.py b/cosmetic_changes.py index 777d424..9377307 100644 --- a/cosmetic_changes.py +++ b/cosmetic_changes.py @@ -364,7 +364,8 @@ 'img_right', 'img_none', 'img_framed', 'img_frameless', 'img_border', 'img_upright', ]: aliases = self.site.siteinfo('magicwords').get(magicWord) - if not aliases: continue + if not aliases: + continue text = pywikibot.replaceExcept( text, r'[[(?P<left>.+?:.+?..+?|) *(' + '|'.join(aliases) + \ @@ -462,8 +463,8 @@ # don't capitalize nouns... #if not self.site.nocapitalize: if self.site.sitename() == 'wikipedia:de': - titleWithSection = titleWithSection[0].upper() + \ - titleWithSection[1:] + titleWithSection = (titleWithSection[0].upper() + + titleWithSection[1:]) newLink = "[[%s|%s]]" % (titleWithSection, label) # re-add spaces that were pulled out of the link. # Examples: @@ -822,6 +823,7 @@ text, r'([\r\n]|^)== *{{int:license-header}} *==(?:[\r\n ]*)== *{{int:license-header}} *==', r'\1== {{int:license-header}} ==', exceptions, True) + return text
@@ -877,7 +879,8 @@ def run(self): try: for page in self.generator: - if self.done: break + if self.done: + break self.treat(page) except KeyboardInterrupt: pywikibot.output('\nQuitting program...')
pywikibot-commits@lists.wikimedia.org