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

Function line_num

tests/functional/docs/test_examples.py:106–107  ·  view source on GitHub ↗
(content, loc)

Source from the content-addressed store, hash-verified

104
105
106def line_num(content, loc):
107 return content[:loc].count('\n') + 1
108
109
110def extract_error_line(content, error_start, error_end):

Callers 1

verify_no_http_linksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected