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

Function _file_search

Tools/ssl/make_ssl_data.py:98–103  ·  view source on GitHub ↗
(fname, pat)

Source from the content-addressed store, hash-verified

96
97
98def _file_search(fname, pat):
99 with open(fname, encoding="utf-8") as f:
100 for line in f:
101 match = pat.search(line)
102 if match is not None:
103 yield match
104
105
106def parse_err_h(args):

Callers 3

parse_err_hFunction · 0.85
parse_openssl_error_textFunction · 0.85
parse_extra_reasonsFunction · 0.85

Calls 2

openFunction · 0.50
searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…