jenkins-bot has submitted this change and it was merged.
Change subject: Removing unused imports in all files ......................................................................
Removing unused imports in all files
using a self-written script
Change-Id: Ie946f512a69a7afebe1e4ad00fad484c65852a1e --- M censure.py M commons_category_redirect.py M copyright.py M copyright_clean.py M delinker.py M disambredir.py M extract_wikilinks.py M featured.py M i18n M imagecopy.py M imageuncat.py M inline_images.py M isbn.py M maintcont.py M noreferences.py M pageimport.py M redirect.py M reflinks.py M replace.py M saveHTML.py M selflink.py M simple_family.py M spellcheck.py M standardize_interwiki.py M standardize_notes.py M statistics_in_wikitable.py M subster.py M table2wiki.py M touch.py M us-states.py M warnfile.py M weblinkchecker.py 32 files changed, 0 insertions(+), 36 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/censure.py b/censure.py index 856d765..e502714 100644 --- a/censure.py +++ b/censure.py @@ -13,7 +13,6 @@
import wikipedia as pywikibot import sys -import thread
# The indexes for projects are as: <language code>.<family>
diff --git a/commons_category_redirect.py b/commons_category_redirect.py index b1a06a5..0494f87 100644 --- a/commons_category_redirect.py +++ b/commons_category_redirect.py @@ -21,7 +21,6 @@ from datetime import timedelta
import wikipedia as pywikibot -import config import catlib from category import *
diff --git a/copyright.py b/copyright.py index bddcfd0..d293b8a 100644 --- a/copyright.py +++ b/copyright.py @@ -92,7 +92,6 @@ import time import urllib import urllib2 -import httplib
import wikipedia as pywikibot import pagegenerators diff --git a/copyright_clean.py b/copyright_clean.py index b5e94af..f5c7ad5 100644 --- a/copyright_clean.py +++ b/copyright_clean.py @@ -12,14 +12,12 @@ #
import sys -import httplib import socket import re import time from urllib import urlencode
import wikipedia as pywikibot -import config import catlib import pagegenerators import query diff --git a/delinker.py b/delinker.py index 4c4b6fe..f051769 100644 --- a/delinker.py +++ b/delinker.py @@ -3,9 +3,7 @@ __version__ = '$Id$'
import sys -import os import wikipedia -import config
sys.path.insert(0, 'commonsdelinker')
diff --git a/disambredir.py b/disambredir.py index ffc644e..ff120d9 100644 --- a/disambredir.py +++ b/disambredir.py @@ -16,7 +16,6 @@ import re import pywikibot import pagegenerators -import catlib
msg = { 'ar': u'تغيير التحويلات في صفحة توضيح', diff --git a/extract_wikilinks.py b/extract_wikilinks.py index 601cea2..e0ef11b 100644 --- a/extract_wikilinks.py +++ b/extract_wikilinks.py @@ -23,7 +23,6 @@ # import sys import re -import codecs import wikipedia as pywikibot # This bot does not contact the Wiki, so no need to get it on the list pywikibot.stopme() diff --git a/featured.py b/featured.py index a052f96..de60387 100644 --- a/featured.py +++ b/featured.py @@ -66,7 +66,6 @@ from pywikibot import i18n from pagegenerators import PreloadingGenerator import catlib -import config
def CAT(site, name, hide): diff --git a/i18n b/i18n index 3437644..e8ee2a4 160000 --- a/i18n +++ b/i18n -Subproject commit 3437644e8345a7156af5d1f6fe8e151d324473cd +Subproject commit e8ee2a4a5bd135d9a93a4a3678525323c08924c1 diff --git a/imagecopy.py b/imagecopy.py index a146701..0870276 100644 --- a/imagecopy.py +++ b/imagecopy.py @@ -90,7 +90,6 @@ import codecs import urllib import httplib -import urllib2 import webbrowser import time import threading diff --git a/imageuncat.py b/imageuncat.py index f86d848..a81f948 100644 --- a/imageuncat.py +++ b/imageuncat.py @@ -16,7 +16,6 @@ import os import sys import re -import codecs from datetime import datetime from datetime import timedelta import pywikibot diff --git a/inline_images.py b/inline_images.py index 5876c4d..a278b9d 100644 --- a/inline_images.py +++ b/inline_images.py @@ -29,11 +29,9 @@ __version__ = '$Id$' #
-import sys import re import pywikibot import pagegenerators -import catlib import weblinkchecker import upload
diff --git a/isbn.py b/isbn.py index d25f1c4..7244cea 100644 --- a/isbn.py +++ b/isbn.py @@ -43,7 +43,6 @@ __version__ = '$Id$' #
-import sys import re import wikipedia as pywikibot import pagegenerators diff --git a/maintcont.py b/maintcont.py index d42299c..93f6491 100644 --- a/maintcont.py +++ b/maintcont.py @@ -23,7 +23,6 @@ from irclib import nm_to_n import threading import time -import math
tasks = 'rciw|censure' projtasks = {} diff --git a/noreferences.py b/noreferences.py index b290edb..1f122c1 100644 --- a/noreferences.py +++ b/noreferences.py @@ -42,7 +42,6 @@ #
import re -import sys import pywikibot from pywikibot import i18n import pagegenerators diff --git a/pageimport.py b/pageimport.py index b362c62..92dcb8d 100644 --- a/pageimport.py +++ b/pageimport.py @@ -31,10 +31,8 @@ __version__ = '$Id$' #
-import urllib import wikipedia as pywikibot import login -import config
class Importer(pywikibot.Page): diff --git a/redirect.py b/redirect.py index d2629d7..ba411e6 100644 --- a/redirect.py +++ b/redirect.py @@ -63,7 +63,6 @@
import re import datetime -import urllib import wikipedia as pywikibot from pywikibot import i18n import config diff --git a/reflinks.py b/reflinks.py index 5627458..08e663d 100644 --- a/reflinks.py +++ b/reflinks.py @@ -45,7 +45,6 @@ import httplib import socket import codecs -import ftplib import subprocess import tempfile import os diff --git a/replace.py b/replace.py index 76adcfa..f648e2c 100644 --- a/replace.py +++ b/replace.py @@ -168,7 +168,6 @@ # Distributed under the terms of the MIT license. #
-import sys import re import time import codecs diff --git a/saveHTML.py b/saveHTML.py index ef2e99c..dadadc5 100644 --- a/saveHTML.py +++ b/saveHTML.py @@ -32,7 +32,6 @@ import httplib import StringIO import re -import sys import md5 import os import string diff --git a/selflink.py b/selflink.py index b5a5910..106bde0 100644 --- a/selflink.py +++ b/selflink.py @@ -34,7 +34,6 @@ #
import re -import sys import pywikibot import pagegenerators import catlib diff --git a/simple_family.py b/simple_family.py index 6424cdb..2623e69 100644 --- a/simple_family.py +++ b/simple_family.py @@ -12,7 +12,6 @@ # Distributed under the terms of the MIT license. #
-import sys import urllib import config import family diff --git a/spellcheck.py b/spellcheck.py index d0f1ad2..7602ed1 100644 --- a/spellcheck.py +++ b/spellcheck.py @@ -59,7 +59,6 @@ #
import re -import sys import string import codecs import wikipedia as pywikibot diff --git a/standardize_interwiki.py b/standardize_interwiki.py index 663f8d9..127815b 100644 --- a/standardize_interwiki.py +++ b/standardize_interwiki.py @@ -16,9 +16,7 @@ __version__ = '$Id$' #
-import os import sys -import difflib import wikipedia as pywikibot import config
diff --git a/standardize_notes.py b/standardize_notes.py index 2682e21..522f5bf 100644 --- a/standardize_notes.py +++ b/standardize_notes.py @@ -51,7 +51,6 @@ #
import subprocess -import sys import re import random import socket diff --git a/statistics_in_wikitable.py b/statistics_in_wikitable.py index 73e2204..6ba5ed9 100644 --- a/statistics_in_wikitable.py +++ b/statistics_in_wikitable.py @@ -22,7 +22,6 @@
import time import pywikibot -import pagegenerators import query
# This is the title of the wikipage where to render stats. diff --git a/subster.py b/subster.py index a0ad062..a2e4f6d 100644 --- a/subster.py +++ b/subster.py @@ -80,7 +80,6 @@ import mimetypes import datetime import email.utils -import logging import ast import shelve import pprint diff --git a/table2wiki.py b/table2wiki.py index d2bd61e..ab97303 100644 --- a/table2wiki.py +++ b/table2wiki.py @@ -56,7 +56,6 @@ #
import re -import sys import time
import wikipedia as pywikibot diff --git a/touch.py b/touch.py index fdb6d2d..b5febd7 100644 --- a/touch.py +++ b/touch.py @@ -28,7 +28,6 @@ import wikipedia as pywikibot import pagegenerators import config -import sys
docuReplacements = {'¶ms;': pagegenerators.parameterHelp}
diff --git a/us-states.py b/us-states.py index aa7168e..443f448 100644 --- a/us-states.py +++ b/us-states.py @@ -24,7 +24,6 @@ #
import re -import sys import wikipedia as pywikibot
diff --git a/warnfile.py b/warnfile.py index 2adf93a..af82c5d 100644 --- a/warnfile.py +++ b/warnfile.py @@ -19,7 +19,6 @@ # __version__ = '$Id$' # -import sys import os import re
diff --git a/weblinkchecker.py b/weblinkchecker.py index f4237f8..48fc237 100644 --- a/weblinkchecker.py +++ b/weblinkchecker.py @@ -105,7 +105,6 @@ import urllib2 import threading import time -import gzip import StringIO
import pywikibot
pywikibot-commits@lists.wikimedia.org