def format_stack_entry(self, *args, **kwargs): entry = Pdb.format_stack_entry(self, *args, **kwargs) return '\n'.join( filter(lambda x: not x.startswith('->'), entry.splitlines()) )
def _format_stack_entry(self, frame_lineno): stack_entry = Pdb.format_stack_entry(self, frame_lineno, "\n") return stack_entry.replace(str(Path.cwd().absolute()), "")