##// END OF EJS Templates
Simplify picking debugger class
Thomas Kluyver -
Show More
@@ -45,7 +45,6 b' class TerminalInteractiveShell(InteractiveShell):'
45 45
46 46 pt_cli = None
47 47 debugger_history = None
48 debugger_cls = TerminalPdb
49 48
50 49 simple_prompt = Bool(_use_simple_prompt,
51 50 help="""Use `raw_input` for the REPL, without completion, multiline input, and prompt colors.
@@ -59,13 +58,9 b' class TerminalInteractiveShell(InteractiveShell):'
59 58 """
60 59 ).tag(config=True)
61 60
62 @observe('simple_prompt')
63 def _simple_prompt_changed(self, changes):
64 if changes['new'] == True:
65 self.debugger_cls = Pdb
66 else:
67 self.debugger_cls = TerminalPdb
68
61 @property
62 def debugger_cls(self):
63 return Pdb if self.simple_prompt else TerminalPdb
69 64
70 65 autoedit_syntax = Bool(False,
71 66 help="auto editing of files with syntax errors.",
General Comments 0
You need to be logged in to leave comments. Login now