##// END OF EJS Templates
ipdb: fix formatting in terminal.debugger
Blazej Michalik -
Show More
@@ -28,22 +28,21 b' class TerminalPdb(Pdb):'
28 def pt_init(self, pt_session_options=None):
28 def pt_init(self, pt_session_options=None):
29 """Initialize the prompt session and the prompt loop
29 """Initialize the prompt session and the prompt loop
30 and store them in self.pt_app and self.pt_loop.
30 and store them in self.pt_app and self.pt_loop.
31
31
32 Additional keyword arguments for the PromptSession class
32 Additional keyword arguments for the PromptSession class
33 can be specified in pt_session_options.
33 can be specified in pt_session_options.
34 """
34 """
35 if pt_session_options is None:
35 if pt_session_options is None:
36 pt_session_options = {}
36 pt_session_options = {}
37
37
38 def get_prompt_tokens():
38 def get_prompt_tokens():
39 return [(Token.Prompt, self.prompt)]
39 return [(Token.Prompt, self.prompt)]
40
40
41 if self._ptcomp is None:
41 if self._ptcomp is None:
42 compl = IPCompleter(shell=self.shell,
42 compl = IPCompleter(shell=self.shell,
43 namespace={},
43 namespace={},
44 global_namespace={},
44 global_namespace={},
45 parent=self.shell,
45 parent=self.shell)
46 )
47 # add a completer for all the do_ methods
46 # add a completer for all the do_ methods
48 methods_names = [m[3:] for m in dir(self) if m.startswith("do_")]
47 methods_names = [m[3:] for m in dir(self) if m.startswith("do_")]
49
48
General Comments 0
You need to be logged in to leave comments. Login now