Commit b19bf40e by Julien Muchembled

Add support for IPython >= 1, ignore older versions

1 parent 8173441b
......@@ -47,12 +47,9 @@ def debugHandler(sig, frame):
def getPdb():
try: # try ipython if available
import IPython
try:
shell = get_ipython()
except NameError:
shell = IPython.frontend.terminal.embed.InteractiveShellEmbed()
shell = IPython.terminal.embed.InteractiveShellEmbed()
return IPython.core.debugger.Pdb(shell.colors)
except ImportError:
except (AttributeError, ImportError):
import pdb
return pdb.Pdb()
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!