MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / _parse_example

Method _parse_example

Lib/doctest.py:662–704  ·  view source on GitHub ↗

Given a regular expression match from `_EXAMPLE_RE` (`m`), return a pair `(source, want)`, where `source` is the matched example's source code (with prompts and indentation stripped); and `want` is the example's expected output (with indentation stripped).

(self, m, name, lineno)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

parseMethod · 0.95

Calls 7

_check_prompt_blankMethod · 0.95
_check_prefixMethod · 0.95
_find_optionsMethod · 0.95
groupMethod · 0.80
splitMethod · 0.80
joinMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected