jenkins-bot has submitted this change and it was merged.
Change subject: pyflakes tag_nowcommons.py ......................................................................
pyflakes tag_nowcommons.py
Change-Id: Iffed42acd6d59d7af974f4cbd9c425bab7f5d863 --- M tag_nowcommons.py 1 file changed, 1 insertion(+), 7 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tag_nowcommons.py b/tag_nowcommons.py index f4c1074..e9ddae2 100644 --- a/tag_nowcommons.py +++ b/tag_nowcommons.py @@ -13,14 +13,10 @@ #
import sys -import re - import wikipedia as pywikibot import pagegenerators -import image #FIXME: Move these lists to commons_lib.py from imagetransfer import nowCommonsTemplate -from nowcommons import nowCommons from pywikibot import i18n
@@ -99,14 +95,12 @@ pywikibot.showDiff(imagepage.get(), newtext) try: imagepage.put(newtext, comment) - except wikipedia.LockedPage: + except pywikibot.LockedPage: return
def main(args): generator = None - always = False - # Load a lot of default generators genFactory = pagegenerators.GeneratorFactory()
pywikibot-commits@lists.wikimedia.org