##// END OF EJS Templates
cleanup: remove unused imports
Brodie Rao -
r12062:c327bfa5 default
parent child Browse files
Show More
@@ -77,7 +77,7 Any value other than 'ansi', 'win32', or
77
77
78 '''
78 '''
79
79
80 import os, sys
80 import os
81
81
82 from mercurial import commands, dispatch, extensions, ui as uimod
82 from mercurial import commands, dispatch, extensions, ui as uimod
83 from mercurial.i18n import _
83 from mercurial.i18n import _
@@ -66,7 +66,7 used.
66 """
66 """
67
67
68 from mercurial.i18n import _
68 from mercurial.i18n import _
69 from mercurial import util, config, extensions, commands, match, cmdutil
69 from mercurial import util, config, extensions, match
70 import re, os
70 import re, os
71
71
72 # Matches a lone LF, i.e., one that is not part of CRLF.
72 # Matches a lone LF, i.e., one that is not part of CRLF.
@@ -14,7 +14,7 For more information:
14 http://mercurial.selenic.com/wiki/RebaseExtension
14 http://mercurial.selenic.com/wiki/RebaseExtension
15 '''
15 '''
16
16
17 from mercurial import hg, util, repair, merge, cmdutil, commands, error
17 from mercurial import hg, util, repair, merge, cmdutil, commands
18 from mercurial import extensions, ancestor, copies, patch
18 from mercurial import extensions, ancestor, copies, patch
19 from mercurial.commands import templateopts
19 from mercurial.commands import templateopts
20 from mercurial.node import nullrev
20 from mercurial.node import nullrev
@@ -7,7 +7,7
7
7
8 """recreates hardlinks between repository clones"""
8 """recreates hardlinks between repository clones"""
9
9
10 from mercurial import cmdutil, hg, util
10 from mercurial import hg, util
11 from mercurial.i18n import _
11 from mercurial.i18n import _
12 import os, stat
12 import os, stat
13
13
@@ -6,7 +6,7
6 # GNU General Public License version 2 or any later version.
6 # GNU General Public License version 2 or any later version.
7
7
8 import error
8 import error
9 import sys, unicodedata, locale, os
9 import unicodedata, locale, os
10
10
11 def _getpreferredencoding():
11 def _getpreferredencoding():
12 '''
12 '''
@@ -6,8 +6,8
6 # This software may be used and distributed according to the terms of the
6 # This software may be used and distributed according to the terms of the
7 # GNU General Public License version 2 or any later version.
7 # GNU General Public License version 2 or any later version.
8
8
9 import os, sys, urllib
9 import os
10 from mercurial import ui, hg, hook, error, encoding, templater, util
10 from mercurial import ui, hg, hook, error, encoding, templater
11 from common import get_mtime, ErrorResponse, permhooks
11 from common import get_mtime, ErrorResponse, permhooks
12 from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR
12 from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR
13 from request import wsgirequest
13 from request import wsgirequest
@@ -6,12 +6,11
6 # This software may be used and distributed according to the terms of the
6 # This software may be used and distributed according to the terms of the
7 # GNU General Public License version 2 or any later version.
7 # GNU General Public License version 2 or any later version.
8
8
9 from node import bin, hex, nullid
9 from node import nullid
10 from i18n import _
10 from i18n import _
11 import repo, changegroup, statichttprepo, error, url, util, wireproto
11 import changegroup, statichttprepo, error, url, util, wireproto
12 import os, urllib, urllib2, urlparse, zlib, httplib
12 import os, urllib, urllib2, urlparse, zlib, httplib
13 import errno, socket
13 import errno, socket
14 import encoding
15
14
16 def zgenerator(f):
15 def zgenerator(f):
17 zd = zlib.decompressobj()
16 zd = zlib.decompressobj()
@@ -6,7 +6,7
6 # GNU General Public License version 2 or any later version.
6 # GNU General Public License version 2 or any later version.
7
7
8 from i18n import _
8 from i18n import _
9 import repo, util, error, wireproto
9 import util, error, wireproto
10 import re
10 import re
11
11
12 class remotelock(object):
12 class remotelock(object):
@@ -6,7 +6,6
6 # This software may be used and distributed according to the terms of the
6 # This software may be used and distributed according to the terms of the
7 # GNU General Public License version 2 or any later version.
7 # GNU General Public License version 2 or any later version.
8
8
9 from i18n import _
10 import util, hook, wireproto
9 import util, hook, wireproto
11 import os, sys
10 import os, sys
12
11
General Comments 0
You need to be logged in to leave comments. Login now