Revision: 6798 Author: cosoleto Date: 2009-05-03 02:28:27 +0000 (Sun, 03 May 2009)
Log Message: ----------- Removed unused modules found by pychecker.
Modified Paths: -------------- trunk/pywikipedia/category.py trunk/pywikipedia/image.py trunk/pywikipedia/imagecopy.py trunk/pywikipedia/isbn.py trunk/pywikipedia/replace.py trunk/pywikipedia/speedy_delete.py trunk/pywikipedia/titletranslate.py trunk/pywikipedia/unlink.py trunk/pywikipedia/upload.py trunk/pywikipedia/userlib.py trunk/pywikipedia/welcome.py trunk/pywikipedia/xmlreader.py
Modified: trunk/pywikipedia/category.py =================================================================== --- trunk/pywikipedia/category.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/category.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -80,7 +80,7 @@ # # Distributed under the terms of the MIT license. # -import os, re, sys, pickle, bz2 +import os, re, pickle, bz2 import wikipedia, catlib, config, pagegenerators
# This is required for the text that is shown when you run this script
Modified: trunk/pywikipedia/image.py =================================================================== --- trunk/pywikipedia/image.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/image.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -34,9 +34,9 @@ # # Distributed under the terms of the MIT license. # -import wikipedia, config +import wikipedia import replace, pagegenerators -import re, sys, string +import re
class ImageRobot: """
Modified: trunk/pywikipedia/imagecopy.py =================================================================== --- trunk/pywikipedia/imagecopy.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/imagecopy.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -85,7 +85,7 @@ from Tkinter import * import os, sys, re, codecs import urllib, httplib, urllib2 -import catlib, thread, webbrowser +import webbrowser import time, threading import wikipedia, config, socket import pagegenerators, add_text
Modified: trunk/pywikipedia/isbn.py =================================================================== --- trunk/pywikipedia/isbn.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/isbn.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -38,7 +38,7 @@
__version__='$Id$'
-import wikipedia, pagegenerators, catlib, config +import wikipedia, pagegenerators import sys, re
docuReplacements = {
Modified: trunk/pywikipedia/replace.py =================================================================== --- trunk/pywikipedia/replace.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/replace.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -114,7 +114,7 @@
from __future__ import generators import sys, re, time -import wikipedia, pagegenerators, catlib, config +import wikipedia, pagegenerators import editarticle import webbrowser
Modified: trunk/pywikipedia/speedy_delete.py =================================================================== --- trunk/pywikipedia/speedy_delete.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/speedy_delete.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -33,9 +33,9 @@ # # Distributed under the terms of the MIT license. # -import wikipedia, config -import replace, pagegenerators, catlib -import re, sys, string, time +import wikipedia +import pagegenerators, catlib +import time
class SpeedyRobot: """
Modified: trunk/pywikipedia/titletranslate.py =================================================================== --- trunk/pywikipedia/titletranslate.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/titletranslate.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -9,7 +9,7 @@ # import re
-import wikipedia, date, time +import wikipedia, date
def translate(page, hints = None, auto = True, removebrackets = False): """
Modified: trunk/pywikipedia/unlink.py =================================================================== --- trunk/pywikipedia/unlink.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/unlink.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -24,9 +24,9 @@
__version__='$Id$'
-import wikipedia, pagegenerators, catlib +import wikipedia, pagegenerators import editarticle -import re, sys +import re
# Summary messages in different languages msg = {
Modified: trunk/pywikipedia/upload.py =================================================================== --- trunk/pywikipedia/upload.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/upload.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -23,8 +23,8 @@ # __version__='$Id$'
-import os, sys, re, time -import urllib, httplib +import os, sys, time +import urllib import wikipedia, config
def post_multipart(site, address, fields, files, cookies):
Modified: trunk/pywikipedia/userlib.py =================================================================== --- trunk/pywikipedia/userlib.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/userlib.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -4,7 +4,7 @@ """ __version__ = '$Id$'
-import re, httplib +import re import wikipedia
Modified: trunk/pywikipedia/welcome.py =================================================================== --- trunk/pywikipedia/welcome.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/welcome.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -175,7 +175,7 @@
import wikipedia, config, string, locale, query import time, re, cPickle, os, urllib -import codecs, sys +import codecs from datetime import timedelta
locale.setlocale(locale.LC_ALL, '')
Modified: trunk/pywikipedia/xmlreader.py =================================================================== --- trunk/pywikipedia/xmlreader.py 2009-05-03 02:26:45 UTC (rev 6797) +++ trunk/pywikipedia/xmlreader.py 2009-05-03 02:28:27 UTC (rev 6798) @@ -17,7 +17,7 @@ """ __version__='$Id$'
-import threading, time +import threading import xml.sax import codecs, re import wikipedia
pywikipedia-svn@lists.wikimedia.org