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

Method parse_cli_output

Lib/test/test_httpservers.py:1518–1522  ·  view source on GitHub ↗
(self, output)

Source from the content-addressed store, hash-verified

1516 return res.read()
1517
1518 def parse_cli_output(self, output):
1519 match = re.search(r'Serving (HTTP|HTTPS) on (.+) port (\d+)', output)
1520 if match is None:
1521 return None, None, None
1522 return match.group(1).lower(), match.group(2), int(match.group(3))
1523
1524 def wait_for_server(self, proc, protocol, bind, port):
1525 """Check that the server has been successfully started."""

Callers 1

wait_for_serverMethod · 0.95

Calls 3

searchMethod · 0.45
lowerMethod · 0.45
groupMethod · 0.45

Tested by

no test coverage detected