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

Function gen_library_codes

Tools/ssl/make_ssl_data.py:160–169  ·  view source on GitHub ↗

Generate table short libname to numeric code.

(args)

Source from the content-addressed store, hash-verified

158
159
160def gen_library_codes(args):
161 """Generate table short libname to numeric code."""
162 yield "/* generated from args.lib2errnum */"
163 yield "static struct py_ssl_library_code library_codes[] = {"
164 for libname in sorted(args.lib2errnum):
165 yield f"#ifdef ERR_LIB_{libname}"
166 yield f' {{"{libname}", ERR_LIB_{libname}}},'
167 yield "#endif"
168 yield " {NULL, 0} /* sentinel */"
169 yield "};"
170
171
172def gen_error_codes(args):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…