# HG changeset patch # User Peter Arrenbrecht # Date 1242308146 -7200 # Node ID beae42f3d93b29225c23fa607fad6a35ccd0b3e8 # Parent 4b798b100c32f6d1c26b02b2ca45ef87f9806833 drop unused imports diff -r 4b798b100c32 -r beae42f3d93b mercurial/cmdutil.py --- a/mercurial/cmdutil.py Thu May 14 15:24:36 2009 +0200 +++ b/mercurial/cmdutil.py Thu May 14 15:35:46 2009 +0200 @@ -8,7 +8,7 @@ from node import hex, nullid, nullrev, short from i18n import _ import os, sys, bisect, stat, errno -import mdiff, bdiff, util, templater, templatefilters, patch, error, encoding +import mdiff, bdiff, util, templater, patch, error, encoding import match as _match revrangesep = ':' diff -r 4b798b100c32 -r beae42f3d93b mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Thu May 14 15:24:36 2009 +0200 +++ b/mercurial/hgweb/hgweb_mod.py Thu May 14 15:35:46 2009 +0200 @@ -7,7 +7,7 @@ # GNU General Public License version 2, incorporated herein by reference. import os -from mercurial import ui, hg, util, hook, error, encoding, templater +from mercurial import ui, hg, hook, error, encoding, templater from common import get_mtime, ErrorResponse from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR from common import HTTP_UNAUTHORIZED, HTTP_METHOD_NOT_ALLOWED diff -r 4b798b100c32 -r beae42f3d93b mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Thu May 14 15:24:36 2009 +0200 +++ b/mercurial/hgweb/webcommands.py Thu May 14 15:35:46 2009 +0200 @@ -12,7 +12,7 @@ from mercurial.util import binary from common import paritygen, staticfile, get_contact, ErrorResponse from common import HTTP_OK, HTTP_FORBIDDEN, HTTP_NOT_FOUND -from mercurial import graphmod, util +from mercurial import graphmod # __all__ is populated with the allowed commands. Be sure to add to it if # you're adding a new command, or the new command won't work. diff -r 4b798b100c32 -r beae42f3d93b mercurial/localrepo.py --- a/mercurial/localrepo.py Thu May 14 15:24:36 2009 +0200 +++ b/mercurial/localrepo.py Thu May 14 15:35:46 2009 +0200 @@ -9,7 +9,7 @@ from i18n import _ import repo, changegroup import changelog, dirstate, filelog, manifest, context -import lock, transaction, ui, store, encoding +import lock, transaction, store, encoding import util, extensions, hook, error import match as match_ import merge as merge_ diff -r 4b798b100c32 -r beae42f3d93b mercurial/lsprofcalltree.py --- a/mercurial/lsprofcalltree.py Thu May 14 15:24:36 2009 +0200 +++ b/mercurial/lsprofcalltree.py Thu May 14 15:35:46 2009 +0200 @@ -10,10 +10,6 @@ of the GNU General Public License, incorporated herein by reference. """ -import optparse -import os -import sys - def label(code): if isinstance(code, str): return '~' + code # built-in functions ('~' sorts at the end) diff -r 4b798b100c32 -r beae42f3d93b mercurial/manifest.py --- a/mercurial/manifest.py Thu May 14 15:24:36 2009 +0200 +++ b/mercurial/manifest.py Thu May 14 15:35:46 2009 +0200 @@ -6,7 +6,7 @@ # GNU General Public License version 2, incorporated herein by reference. from i18n import _ -import mdiff, parsers, util, error, revlog +import mdiff, parsers, error, revlog import array, struct class manifestdict(dict): diff -r 4b798b100c32 -r beae42f3d93b mercurial/templatefilters.py --- a/mercurial/templatefilters.py Thu May 14 15:24:36 2009 +0200 +++ b/mercurial/templatefilters.py Thu May 14 15:35:46 2009 +0200 @@ -6,7 +6,7 @@ # GNU General Public License version 2, incorporated herein by reference. import cgi, re, os, time, urllib, textwrap -import util, templater, encoding +import util, encoding def stringify(thing): '''turn nested template iterator into string.''' diff -r 4b798b100c32 -r beae42f3d93b mercurial/util.py --- a/mercurial/util.py Thu May 14 15:24:36 2009 +0200 +++ b/mercurial/util.py Thu May 14 15:35:46 2009 +0200 @@ -16,7 +16,7 @@ from i18n import _ import error, osutil import cStringIO, errno, re, shutil, sys, tempfile, traceback -import os, stat, threading, time, calendar, glob, random +import os, stat, time, calendar, glob, random import imp # Python compatibility