contrib/debugshell.py
changeset 43080 86e4daa2d54c
parent 43076 2372284d9457
child 48875 6000f5b25c9b
equal deleted inserted replaced
43079:5209fc94b982 43080:86e4daa2d54c
    54     # if IPython doesn't exist, fallback to code.interact
    54     # if IPython doesn't exist, fallback to code.interact
    55     try:
    55     try:
    56         with demandimport.deactivated():
    56         with demandimport.deactivated():
    57             __import__(pdbmap[debugger])
    57             __import__(pdbmap[debugger])
    58     except ImportError:
    58     except ImportError:
    59         ui.warn(
    59         ui.warnnoi18n(
    60             b"%s debugger specified but %s module was not found\n"
    60             b"%s debugger specified but %s module was not found\n"
    61             % (debugger, pdbmap[debugger])
    61             % (debugger, pdbmap[debugger])
    62         )
    62         )
    63         debugger = b'pdb'
    63         debugger = b'pdb'
    64 
    64