MCPcopy Index your code
hub / github.com/python/cpython / default

Method default

Lib/pdb.py:3079–3088  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

3077 return super()._error_exc()
3078
3079 def default(self, line):
3080 # Unlike Pdb, don't prompt for more lines of a multi-line command.
3081 # The remote needs to send us the whole block in one go.
3082 try:
3083 candidate = line.removeprefix("!") + "\n"
3084 if codeop.compile_command(candidate, "<stdin>", "single") is None:
3085 raise SyntaxError("Incomplete command")
3086 return super().default(candidate)
3087 except:
3088 self._error_exc()
3089
3090
3091class _PdbClient:

Callers

nothing calls this directly

Calls 4

_error_excMethod · 0.95
superClass · 0.85
removeprefixMethod · 0.45
defaultMethod · 0.45

Tested by

no test coverage detected