jenkins-bot has submitted this change and it was merged.
Change subject: pep8 changes, improvements ......................................................................
pep8 changes, improvements
Change-Id: If5f4f71335a11fc34dcff8a8adbe639f72d613eb --- M fixing_redirects.py 1 file changed, 4 insertions(+), 1 deletion(-)
Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified
diff --git a/fixing_redirects.py b/fixing_redirects.py index b260a31..0793b67 100644 --- a/fixing_redirects.py +++ b/fixing_redirects.py @@ -55,8 +55,10 @@ 'zh': u'Wikipedia:特色条目', }
+ def firstcap(string): return string[0].upper()+string[1:] +
def treat(text, linkedPage, targetPage): """ @@ -160,7 +162,7 @@ pywikibot.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title()) links = page.linkedPages() - if len(links) > 0: + if len(links): pywikibot.getall(mysite,links) else: pywikibot.output('Nothing left to do.') @@ -189,6 +191,7 @@ except (pywikibot.Error): pywikibot.error('unable to put %s' % page)
+ def main(): featured = False gen = None