##// END OF EJS Templates
pylint, pyflakes: remove unused or duplicate imports
Nicolas Dumazet -
r10905:13a1b2fb default
parent child Browse files
Show More
@@ -7,7 +7,7 b''
7 7 # This software may be used and distributed according to the terms of the
8 8 # GNU General Public License version 2 or any later version.
9 9
10 import sys, re, glob
10 import re, glob
11 11 import optparse
12 12
13 13 def repquote(m):
@@ -45,14 +45,9 b' by the command whatis or apropos.'
45 45
46 46 __docformat__ = 'reStructuredText'
47 47
48 import sys
49 import os
50 import time
51 48 import re
52 from types import ListType
53 49
54 import docutils
55 from docutils import nodes, utils, writers, languages
50 from docutils import nodes, writers, languages
56 51 import roman
57 52
58 53 FIELD_LIST_INDENT = 7
@@ -10,7 +10,7 b''
10 10
11 11 from mercurial.i18n import _
12 12 from mercurial import patch, cmdutil, util, templater
13 import sys, os
13 import os
14 14 import time, datetime
15 15
16 16 def maketemplater(ui, repo, tmpl):
@@ -25,11 +25,6 b' import urllib'
25 25 import urllib2
26 26 import email.Utils
27 27
28 try:
29 from cStringIO import StringIO
30 except ImportError, msg:
31 from StringIO import StringIO
32
33 28 class RangeError(IOError):
34 29 """Error raised when an unsatisfiable range is requested."""
35 30 pass
@@ -10,7 +10,6 b' import os'
10 10 from mercurial import ui, hg, hook, error, encoding, templater
11 11 from common import get_mtime, ErrorResponse, permhooks
12 12 from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR
13 from common import HTTP_UNAUTHORIZED, HTTP_METHOD_NOT_ALLOWED
14 13 from request import wsgirequest
15 14 import webcommands, protocol, webutil
16 15
@@ -7,7 +7,7 b''
7 7 # GNU General Public License version 2 or any later version.
8 8
9 9 import os, sys, errno, urllib, BaseHTTPServer, socket, SocketServer, traceback
10 from mercurial import hg, util, error
10 from mercurial import util, error
11 11 from mercurial.i18n import _
12 12
13 13 def _splitURI(uri):
@@ -10,7 +10,7 b' from i18n import _'
10 10 from node import hex, nullid, short
11 11 import base85, cmdutil, mdiff, util, diffhelpers, copies
12 12 import cStringIO, email.Parser, os, re
13 import sys, tempfile, zlib
13 import tempfile, zlib
14 14
15 15 gitre = re.compile('diff --git a/(.*) b/(.*)')
16 16
@@ -6,7 +6,6 b''
6 6 # GNU General Public License version 2 or any later version.
7 7
8 8 import util, error
9 from i18n import _
10 9
11 10 from mercurial import store
12 11
@@ -37,7 +37,6 b' import shutil'
37 37 import tempfile
38 38 from distutils.core import setup, Extension
39 39 from distutils.dist import Distribution
40 from distutils.command.install_data import install_data
41 40 from distutils.command.build import build
42 41 from distutils.command.build_py import build_py
43 42 from distutils.spawn import spawn, find_executable
@@ -3,7 +3,7 b''
3 3 """This does HTTP GET requests given a host:port and path and returns
4 4 a subset of the headers plus the body of the result."""
5 5
6 import httplib, sys, re
6 import httplib, sys
7 7
8 8 try:
9 9 import msvcrt, os
@@ -1,6 +1,6 b''
1 1 #!/usr/bin/env python
2 2
3 import os, sys, time, errno, signal
3 import os, time, errno, signal
4 4
5 5 # Kill off any leftover daemon processes
6 6 try:
@@ -46,9 +46,8 b' import difflib'
46 46 import errno
47 47 import optparse
48 48 import os
49 import signal
49 import shutil
50 50 import subprocess
51 import shutil
52 51 import signal
53 52 import sys
54 53 import tempfile
@@ -1,5 +1,4 b''
1 1 #!/usr/bin/python
2 import os
3 2 from mercurial.ui import ui
4 3 from mercurial.localrepo import localrepository
5 4 from mercurial.commands import add, commit, status
General Comments 0
You need to be logged in to leave comments. Login now