Perform useful escapes on the command before it is executed.
(self, line)
| 568 | self.stdout.write("\n" + self.shell.get_exception_only()) |
| 569 | |
| 570 | def precmd(self, line): |
| 571 | """Perform useful escapes on the command before it is executed.""" |
| 572 | |
| 573 | if line.endswith("??"): |
| 574 | line = "pinfo2 " + line[:-2] |
| 575 | elif line.endswith("?"): |
| 576 | line = "pinfo " + line[:-1] |
| 577 | |
| 578 | line = super().precmd(line) |
| 579 | |
| 580 | return line |
| 581 | |
| 582 | def new_do_quit(self, arg): |
| 583 | return OldPdb.do_quit(self, arg) |