From 372a10b5baab0111f9360e0187b1864521b08e50 2021-02-07 20:57:22 From: Blazej Michalik Date: 2021-02-07 20:57:22 Subject: [PATCH] ipdb: fix formatting in terminal.debugger --- diff --git a/IPython/terminal/debugger.py b/IPython/terminal/debugger.py index 0d504c8..a4a5419 100644 --- a/IPython/terminal/debugger.py +++ b/IPython/terminal/debugger.py @@ -28,22 +28,21 @@ class TerminalPdb(Pdb): def pt_init(self, pt_session_options=None): """Initialize the prompt session and the prompt loop and store them in self.pt_app and self.pt_loop. - + Additional keyword arguments for the PromptSession class can be specified in pt_session_options. """ if pt_session_options is None: pt_session_options = {} - + def get_prompt_tokens(): return [(Token.Prompt, self.prompt)] if self._ptcomp is None: compl = IPCompleter(shell=self.shell, - namespace={}, - global_namespace={}, - parent=self.shell, - ) + namespace={}, + global_namespace={}, + parent=self.shell) # add a completer for all the do_ methods methods_names = [m[3:] for m in dir(self) if m.startswith("do_")]