예제 #1
0
 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())
     )
예제 #2
0
 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()), "")