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

Function parse_openssl_error_text

scripts/make_ssl_data_rs.py:48–58  ·  view source on GitHub ↗

Parse error reasons, X509_R_AKID_MISMATCH

(args)

Source from the content-addressed store, hash-verified

46
47
48def parse_openssl_error_text(args):
49 """Parse error reasons, X509_R_AKID_MISMATCH"""
50 # ignore backslash line continuation for now
51 pat = re.compile(r"^((\w+?)_R_(\w+)):(\d+):")
52 for match in _file_search(args.errtxt, pat):
53 reason, libname, errname, num = match.groups()
54 if "_F_" in reason:
55 # ignore function codes
56 continue
57 num = int(num)
58 yield reason, libname, errname, num
59
60
61def parse_extra_reasons(args):

Callers 1

mainFunction · 0.85

Calls 3

_file_searchFunction · 0.85
compileMethod · 0.45
groupsMethod · 0.45

Tested by

no test coverage detected