jenkins-bot has submitted this change and it was merged.

Change subject: remove obsolete imports and never used variables
......................................................................


remove obsolete imports and never used variables

(see pyflakes)

Change-Id: I75eebf77e7708601dcdb88a36158d2072e274e06
---
M scripts/featured.py
1 file changed, 0 insertions(+), 6 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/featured.py b/scripts/featured.py
index a7027f6..03bd03e 100644
--- a/scripts/featured.py
+++ b/scripts/featured.py
@@ -64,14 +64,11 @@
 # Distributed under the terms of the MIT license.
 #
 
-import os.path
 import pickle
 import re
-import sys
 from copy import copy
 import pywikibot
 from pywikibot import i18n
-from pywikibot import config
 from pywikibot.pagegenerators import PreloadingGenerator
 
 
@@ -360,7 +357,6 @@
             self.featuredWithInterwiki(fromsite, process)
 
     def featuredArticles(self, site, task, cache):
-        wikidata = False
         code = site.lang
         articles = []
         if task == 'good':
@@ -527,7 +523,6 @@
                               % (findtemplate.replace(u' ', u'[ _]'),
                                  site.code), re.IGNORECASE)
 
-        quiet = self.getOption('quiet')
         tosite = self.site
         if not fromsite.lang in self.cache:
             self.cache[fromsite.lang] = {}
@@ -542,7 +537,6 @@
         re_Link_remove = compile_link(fromsite, remove_tl)
         gen = self.featuredArticles(fromsite, task, cc)
         gen = PreloadingGenerator(gen)
-        pairs = []
         for a in gen:
             if a.isRedirectPage():
                 a = a.getRedirectTarget()

-- 
To view, visit https://gerrit.wikimedia.org/r/91400
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I75eebf77e7708601dcdb88a36158d2072e274e06
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to