diff options
author | Guido van Rossum <guido@python.org> | 1995-02-03 12:50:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-03 12:50:04 (GMT) |
commit | b6aa92ebf178361e821a1ebffdce6b5fcf96bfae (patch) | |
tree | 0fa5a73fbb7e33ac3b5ae6f0677c575d630f1a45 /Lib/pdb.py | |
parent | 08e767bdc54eeceda4a20593319afd74c5380200 (diff) | |
download | cpython-b6aa92ebf178361e821a1ebffdce6b5fcf96bfae.zip cpython-b6aa92ebf178361e821a1ebffdce6b5fcf96bfae.tar.gz cpython-b6aa92ebf178361e821a1ebffdce6b5fcf96bfae.tar.bz2 |
fix formatting of stack entries
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -62,8 +62,7 @@ class Pdb(bdb.Bdb, cmd.Cmd): def interaction(self, frame, traceback): self.setup(frame, traceback) - self.print_stack_entry(self.stack[self.curindex], - line_prefix) + self.print_stack_entry(self.stack[self.curindex]) self.cmdloop() self.forget() @@ -288,7 +287,7 @@ class Pdb(bdb.Bdb, cmd.Cmd): except KeyboardInterrupt: pass - def print_stack_entry(self, frame_lineno, prompt_prefix=''): + def print_stack_entry(self, frame_lineno, prompt_prefix=line_prefix): frame, lineno = frame_lineno if frame is self.curframe: print '>', |