# HG changeset patch # User Nicolas Dumazet # Date 1271235490 -32400 # Node ID 13a1b2fb7ef2c8b1540a2975b2460d44776fc5a2 # Parent cd21bf199d17681770552d1be9074caf691528ca pylint, pyflakes: remove unused or duplicate imports diff -r cd21bf199d17 -r 13a1b2fb7ef2 contrib/check-code.py --- a/contrib/check-code.py Wed Apr 14 09:09:43 2010 +0200 +++ b/contrib/check-code.py Wed Apr 14 17:58:10 2010 +0900 @@ -7,7 +7,7 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -import sys, re, glob +import re, glob import optparse def repquote(m): diff -r cd21bf199d17 -r 13a1b2fb7ef2 doc/rst2man.py --- a/doc/rst2man.py Wed Apr 14 09:09:43 2010 +0200 +++ b/doc/rst2man.py Wed Apr 14 17:58:10 2010 +0900 @@ -45,14 +45,9 @@ __docformat__ = 'reStructuredText' -import sys -import os -import time import re -from types import ListType -import docutils -from docutils import nodes, utils, writers, languages +from docutils import nodes, writers, languages import roman FIELD_LIST_INDENT = 7 diff -r cd21bf199d17 -r 13a1b2fb7ef2 hgext/churn.py --- a/hgext/churn.py Wed Apr 14 09:09:43 2010 +0200 +++ b/hgext/churn.py Wed Apr 14 17:58:10 2010 +0900 @@ -10,7 +10,7 @@ from mercurial.i18n import _ from mercurial import patch, cmdutil, util, templater -import sys, os +import os import time, datetime def maketemplater(ui, repo, tmpl): diff -r cd21bf199d17 -r 13a1b2fb7ef2 mercurial/byterange.py --- a/mercurial/byterange.py Wed Apr 14 09:09:43 2010 +0200 +++ b/mercurial/byterange.py Wed Apr 14 17:58:10 2010 +0900 @@ -25,11 +25,6 @@ import urllib2 import email.Utils -try: - from cStringIO import StringIO -except ImportError, msg: - from StringIO import StringIO - class RangeError(IOError): """Error raised when an unsatisfiable range is requested.""" pass diff -r cd21bf199d17 -r 13a1b2fb7ef2 mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Wed Apr 14 09:09:43 2010 +0200 +++ b/mercurial/hgweb/hgweb_mod.py Wed Apr 14 17:58:10 2010 +0900 @@ -10,7 +10,6 @@ from mercurial import ui, hg, hook, error, encoding, templater from common import get_mtime, ErrorResponse, permhooks from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR -from common import HTTP_UNAUTHORIZED, HTTP_METHOD_NOT_ALLOWED from request import wsgirequest import webcommands, protocol, webutil diff -r cd21bf199d17 -r 13a1b2fb7ef2 mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py Wed Apr 14 09:09:43 2010 +0200 +++ b/mercurial/hgweb/server.py Wed Apr 14 17:58:10 2010 +0900 @@ -7,7 +7,7 @@ # GNU General Public License version 2 or any later version. import os, sys, errno, urllib, BaseHTTPServer, socket, SocketServer, traceback -from mercurial import hg, util, error +from mercurial import util, error from mercurial.i18n import _ def _splitURI(uri): diff -r cd21bf199d17 -r 13a1b2fb7ef2 mercurial/patch.py --- a/mercurial/patch.py Wed Apr 14 09:09:43 2010 +0200 +++ b/mercurial/patch.py Wed Apr 14 17:58:10 2010 +0900 @@ -10,7 +10,7 @@ from node import hex, nullid, short import base85, cmdutil, mdiff, util, diffhelpers, copies import cStringIO, email.Parser, os, re -import sys, tempfile, zlib +import tempfile, zlib gitre = re.compile('diff --git a/(.*) b/(.*)') diff -r cd21bf199d17 -r 13a1b2fb7ef2 mercurial/streamclone.py --- a/mercurial/streamclone.py Wed Apr 14 09:09:43 2010 +0200 +++ b/mercurial/streamclone.py Wed Apr 14 17:58:10 2010 +0900 @@ -6,7 +6,6 @@ # GNU General Public License version 2 or any later version. import util, error -from i18n import _ from mercurial import store diff -r cd21bf199d17 -r 13a1b2fb7ef2 setup.py --- a/setup.py Wed Apr 14 09:09:43 2010 +0200 +++ b/setup.py Wed Apr 14 17:58:10 2010 +0900 @@ -37,7 +37,6 @@ import tempfile from distutils.core import setup, Extension from distutils.dist import Distribution -from distutils.command.install_data import install_data from distutils.command.build import build from distutils.command.build_py import build_py from distutils.spawn import spawn, find_executable diff -r cd21bf199d17 -r 13a1b2fb7ef2 tests/get-with-headers.py --- a/tests/get-with-headers.py Wed Apr 14 09:09:43 2010 +0200 +++ b/tests/get-with-headers.py Wed Apr 14 17:58:10 2010 +0900 @@ -3,7 +3,7 @@ """This does HTTP GET requests given a host:port and path and returns a subset of the headers plus the body of the result.""" -import httplib, sys, re +import httplib, sys try: import msvcrt, os diff -r cd21bf199d17 -r 13a1b2fb7ef2 tests/killdaemons.py --- a/tests/killdaemons.py Wed Apr 14 09:09:43 2010 +0200 +++ b/tests/killdaemons.py Wed Apr 14 17:58:10 2010 +0900 @@ -1,6 +1,6 @@ #!/usr/bin/env python -import os, sys, time, errno, signal +import os, time, errno, signal # Kill off any leftover daemon processes try: diff -r cd21bf199d17 -r 13a1b2fb7ef2 tests/run-tests.py --- a/tests/run-tests.py Wed Apr 14 09:09:43 2010 +0200 +++ b/tests/run-tests.py Wed Apr 14 17:58:10 2010 +0900 @@ -46,9 +46,8 @@ import errno import optparse import os -import signal +import shutil import subprocess -import shutil import signal import sys import tempfile diff -r cd21bf199d17 -r 13a1b2fb7ef2 tests/test-status-inprocess.py --- a/tests/test-status-inprocess.py Wed Apr 14 09:09:43 2010 +0200 +++ b/tests/test-status-inprocess.py Wed Apr 14 17:58:10 2010 +0900 @@ -1,5 +1,4 @@ #!/usr/bin/python -import os from mercurial.ui import ui from mercurial.localrepo import localrepository from mercurial.commands import add, commit, status