MCPcopy Create free account
hub / github.com/aws/aws-cli / extract_error_line

Function extract_error_line

tests/functional/docs/test_examples.py:110–113  ·  view source on GitHub ↗
(content, error_start, error_end)

Source from the content-addressed store, hash-verified

108
109
110def extract_error_line(content, error_start, error_end):
111 error_line_begin = content.rfind('\n', 0, error_start)
112 error_line_end = content.find('\n', error_end)
113 return content[error_line_begin:error_line_end]
114
115
116@pytest.fixture(scope="module")

Callers 1

verify_no_http_linksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected