traceback.print_exc()
elif guiname not in ['none', '', None]:
# Only print a warning if the guiname was going to do something
- sys.stderr.write("PyDev console: Python version does not support GUI event loop integration for '%s'\n" % guiname)
+ sys.stderr.write("Debug console: Python version does not support GUI event loop integration for '%s'\n" % guiname)
# Return value does not matter, so return back what was sent
return guiname
# a single operation, so we don't return True on every
# call when the debug hook is in place to allow the GUI to run
_DebugConsoleHelper._return_control_osc = not _DebugConsoleHelper._return_control_osc
- if _DebugConsoleHelper._return_control_osc:
- return True
- return False
+ return _DebugConsoleHelper._return_control_osc
from pydev_ipython.inputhook import get_inputhook, set_return_control_callback
set_return_control_callback(return_control)