MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / parse_section

Function parse_section

preprocessor/docopt.py:464–467  ·  view source on GitHub ↗
(name, source)

Source from the content-addressed store, hash-verified

462
463
464def parse_section(name, source):
465 pattern = re.compile('^([^\n]*' + name + '[^\n]*\n?(?:[ \t].*?(?:\n|$))*)',
466 re.IGNORECASE | re.MULTILINE)
467 return [s.strip() for s in pattern.findall(source)]
468
469
470def formal_usage(section):

Callers 2

parse_defaultsFunction · 0.85
docoptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected