
gerrit at wikimedia
Aug 11, 2013, 8:29 PM
Post #1 of 1
(5 views)
Permalink
|
|
[MediaWiki-commits] [Gerrit] pep8 changes, improvements - change (pywikibot/compat)
|
|
Xqt has uploaded a new change for review. https://gerrit.wikimedia.org/r/78786 Change subject: pep8 changes, improvements ...................................................................... pep8 changes, improvements Change-Id: If5f4f71335a11fc34dcff8a8adbe639f72d613eb --- M fixing_redirects.py 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat refs/changes/86/78786/1 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 -- To view, visit https://gerrit.wikimedia.org/r/78786 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If5f4f71335a11fc34dcff8a8adbe639f72d613eb Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/compat Gerrit-Branch: master Gerrit-Owner: Xqt <info [at] gno> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits [at] lists https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
|