jenkins-bot has submitted this change and it was merged.
Change subject: remove obsolete imports ......................................................................
remove obsolete imports
Change-Id: Ic5cc1c87a92f1bb84b67866c086830b536c7023b --- M scripts/imageuncat.py M scripts/login.py M scripts/noreferences.py M scripts/reflinks.py M scripts/weblinkchecker.py 5 files changed, 2 insertions(+), 12 deletions(-)
Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/imageuncat.py b/scripts/imageuncat.py index c75bada..2627284 100755 --- a/scripts/imageuncat.py +++ b/scripts/imageuncat.py @@ -13,16 +13,10 @@ __version__ = '$Id$' #
-import os -import sys -import re -import codecs from datetime import datetime from datetime import timedelta import pywikibot -from pywikibot import config from pywikibot import pagegenerators -from pywikibot import config import query
#Probably unneeded because these are hidden categories. Have to figure it out. diff --git a/scripts/login.py b/scripts/login.py index 6d31e09..fba9eb1 100755 --- a/scripts/login.py +++ b/scripts/login.py @@ -55,11 +55,10 @@ __version__ = '$Id$' #
-import logging import pywikibot from os.path import join -from pywikibot import config, deprecate_arg -from pywikibot.exceptions import NoSuchSite, NoUsername +from pywikibot import config +from pywikibot.exceptions import NoSuchSite
def main(*args): diff --git a/scripts/noreferences.py b/scripts/noreferences.py index f102b54..14b01ad 100755 --- a/scripts/noreferences.py +++ b/scripts/noreferences.py @@ -45,7 +45,6 @@ import pywikibot from pywikibot import i18n from pywikibot import pagegenerators -import editarticle
# This is required for the text that is shown when you run this script # with the parameter -help. diff --git a/scripts/reflinks.py b/scripts/reflinks.py index 3d2207e..965794a 100644 --- a/scripts/reflinks.py +++ b/scripts/reflinks.py @@ -44,7 +44,6 @@ import httplib import socket import codecs -import ftplib import subprocess import tempfile import os diff --git a/scripts/weblinkchecker.py b/scripts/weblinkchecker.py index 4e762ee..1269378 100644 --- a/scripts/weblinkchecker.py +++ b/scripts/weblinkchecker.py @@ -109,7 +109,6 @@ import urllib import threading import time -import gzip
import pywikibot from pywikibot import i18n
pywikibot-commits@lists.wikimedia.org