MCPcopy Index your code
hub / github.com/RustPython/RustPython / parse_extra_reasons

Function parse_extra_reasons

scripts/make_ssl_data_rs.py:61–67  ·  view source on GitHub ↗

Parse extra reasons from openssl.ec

(args)

Source from the content-addressed store, hash-verified

59
60
61def parse_extra_reasons(args):
62 """Parse extra reasons from openssl.ec"""
63 pat = re.compile(r"^R\s+((\w+)_R_(\w+))\s+(\d+)")
64 for match in _file_search(args.errcodes, pat):
65 reason, libname, errname, num = match.groups()
66 num = int(num)
67 yield reason, libname, errname, num
68
69
70def gen_library_codes_rust(args):

Callers 1

mainFunction · 0.85

Calls 3

_file_searchFunction · 0.85
compileMethod · 0.45
groupsMethod · 0.45

Tested by

no test coverage detected