MCPcopy Index your code
hub / github.com/RustPython/RustPython / onecmd

Method onecmd

Lib/pdb.py:423–433  ·  view source on GitHub ↗

Interpret the argument as though it had been typed in response to the prompt. Checks whether this line is typed at the normal prompt or in a breakpoint command list definition.

(self, line)

Source from the content-addressed store, hash-verified

421 return line
422
423 def onecmd(self, line):
424 """Interpret the argument as though it had been typed in response
425 to the prompt.
426
427 Checks whether this line is typed at the normal prompt or in
428 a breakpoint command list definition.
429 """
430 if not self.commands_defining:
431 return cmd.Cmd.onecmd(self, line)
432 else:
433 return self.handle_command_def(line)
434
435 def handle_command_def(self, line):
436 """Handles one command line during command list definition."""

Callers 2

execRcLinesMethod · 0.95
bp_commandsMethod · 0.95

Calls 1

handle_command_defMethod · 0.95

Tested by

no test coverage detected