MCPcopy Index your code
hub / github.com/ipython/ipython / precmd

Method precmd

IPython/core/debugger.py:570–580  ·  view source on GitHub ↗

Perform useful escapes on the command before it is executed.

(self, line)

Source from the content-addressed store, hash-verified

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)

Callers 1

cmdloopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected