[curses] disable lazy import (from Hg) for urwid (closes #87901)

authorAlain Leufroy <alain.leufroy@logilab.fr>
changeset133acb2b057d
branchstable
phasepublic
hiddenno
parent revision#e27454775f51 [hgpatches] fix missing return in scmutil.match with mercurial 1.6.4 (#88239)
child revision#60ae286afdf4 [core] fix OSError while focusing on removed file (closes #87839)
files modified by this revision
hgviewlib/curses/__init__.py
# HG changeset patch
# User Alain Leufroy <alain.leufroy@logilab.fr>
# Date 1327566811 -3600
# Thu Jan 26 09:33:31 2012 +0100
# Branch stable
# Node ID 133acb2b057da40b926681eb4a2389a8d087aa67
# Parent e27454775f510f336fa56a5de1a794535f68fdd4
[curses] disable lazy import (from Hg) for urwid (closes #87901)

diff --git a/hgviewlib/curses/__init__.py b/hgviewlib/curses/__init__.py
@@ -15,10 +15,24 @@
1  # this program.  If not, see <http://www.gnu.org/licenses/>.
2 
3  """
4  console interface for hgview.
5  """
6 +
7 +# disable lazy import for urwid
8 +from mercurial import demandimport
9 +demandimport.ignore.extend([
10 +    'urwid.html_fragment', 'urwid.tests', 'urwid', 'urwid.escape',
11 +    'urwid.command_map', 'urwid.signals', 'urwid.version', 'urwid.util',
12 +    'urwid.display_common', 'urwid.font', 'urwid.old_str_util',
13 +    'urwid.lcd_display', 'urwid.raw_display', 'urwid.split_repr',
14 +    'urwid.listbox', 'urwid.decoration', 'urwid.widget', 'urwid.graphics',
15 +    'urwid.wimp', 'urwid.container', 'urwid.web_display',
16 +    'urwid.curses_display', 'urwid.text_layout', 'urwid.compat',
17 +    'urwid.main_loop', 'urwid.monitored_list', 'urwid.__init__',
18 +    'urwid.vterm_test', 'urwid.treetools', 'urwid.canvas', 'urwid.vterm'])
19 +
20  # use __all__ in the corresponding modules
21  # pylint: disable-msg=W0401
22  from hgviewlib.curses.utils import *
23  from hgviewlib.curses.exceptions import *
24  from hgviewlib.curses.widgets import *