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)
| 1057 | return line |
| 1058 | |
| 1059 | def onecmd(self, line): |
| 1060 | """Interpret the argument as though it had been typed in response |
| 1061 | to the prompt. |
| 1062 | |
| 1063 | Checks whether this line is typed at the normal prompt or in |
| 1064 | a breakpoint command list definition. |
| 1065 | """ |
| 1066 | if not self.commands_defining: |
| 1067 | if line.startswith('_pdbcmd'): |
| 1068 | command, arg, line = self.parseline(line) |
| 1069 | if hasattr(self, command): |
| 1070 | return getattr(self, command)(arg) |
| 1071 | return cmd.Cmd.onecmd(self, line) |
| 1072 | else: |
| 1073 | return self.handle_command_def(line) |
| 1074 | |
| 1075 | def handle_command_def(self, line): |
| 1076 | """Handles one command line during command list definition.""" |
no test coverage detected