##// END OF EJS Templates
debugshell: disable demand importer when importing debugger...
Gregory Szorc -
r27721:e4b512bb default
parent child Browse files
Show More
@@ -4,7 +4,10 b''
4 import sys
4 import sys
5 import mercurial
5 import mercurial
6 import code
6 import code
7 from mercurial import cmdutil
7 from mercurial import (
8 cmdutil,
9 demandimport,
10 )
8
11
9 cmdtable = {}
12 cmdtable = {}
10 command = cmdutil.command(cmdtable)
13 command = cmdutil.command(cmdtable)
@@ -45,7 +48,8 b' def debugshell(ui, repo, **opts):'
45
48
46 # if IPython doesn't exist, fallback to code.interact
49 # if IPython doesn't exist, fallback to code.interact
47 try:
50 try:
48 __import__(pdbmap[debugger])
51 with demandimport.deactivated():
52 __import__(pdbmap[debugger])
49 except ImportError:
53 except ImportError:
50 ui.warn("%s debugger specified but %s module was not found\n"
54 ui.warn("%s debugger specified but %s module was not found\n"
51 % (debugger, pdbmap[debugger]))
55 % (debugger, pdbmap[debugger]))
General Comments 0
You need to be logged in to leave comments. Login now