MCPcopy
hub / github.com/psycopg/psycopg / main

Function main

tools/update_errors.py:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def main():
27 # Note: add "master" for a preview
28 classes, errors = fetch_errors("9.6 10 11 12 13 14 15 16 17 18".split())
29
30 fn = os.path.dirname(__file__) + "/../psycopg/psycopg/errors.py"
31 update_file(fn, generate_module_data(classes, errors))
32
33 fn = os.path.dirname(__file__) + "/../docs/api/errors.rst"
34 update_file(fn, generate_docs_data(classes, errors))
35
36
37def parse_errors_txt(url):

Callers 1

update_errors.pyFile · 0.70

Calls 4

fetch_errorsFunction · 0.85
generate_module_dataFunction · 0.85
generate_docs_dataFunction · 0.85
update_fileFunction · 0.70

Tested by

no test coverage detected