jenkins-bot has submitted this change and it was merged.
Change subject: pyflakes for reflinks.py and featured.py ......................................................................
pyflakes for reflinks.py and featured.py
Change-Id: I74856fdd2bced56883fa03e0de2c7e982a525ef3 --- M featured.py M reflinks.py 2 files changed, 1 insertion(+), 4 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/featured.py b/featured.py index de60387..2f9aceb 100644 --- a/featured.py +++ b/featured.py @@ -57,7 +57,6 @@ # Distributed under the terms of the MIT license. #
-import os.path import pickle import re import sys @@ -474,7 +473,6 @@ fromsite.lang), re.IGNORECASE) gen = featuredArticles(fromsite, pType) gen = PreloadingGenerator(gen) - pairs = [] for a in gen: if a.title() < afterpage: continue @@ -560,7 +558,7 @@ else: pywikibot.output(u"(already done)") cc[a.title()] = atrans.title() - except pywikibot.PageNotSaved, e: + except pywikibot.PageNotSaved: pywikibot.output(u"Page not saved")
diff --git a/reflinks.py b/reflinks.py index df37ffc..23d282e 100644 --- a/reflinks.py +++ b/reflinks.py @@ -797,7 +797,6 @@ def main(): genFactory = pagegenerators.GeneratorFactory()
- PageTitles = [] xmlFilename = None always = False ignorepdf = False
pywikibot-commits@lists.wikimedia.org