MCPcopy
hub / github.com/psycopg/psycopg / update_python_oids

Function update_python_oids

tools/update_oids.py:60–68  ·  view source on GitHub ↗
(conn: Connection)

Source from the content-addressed store, hash-verified

58
59
60def update_python_oids(conn: Connection) -> None:
61 fn = ROOT / "psycopg/psycopg/_oids.py"
62
63 lines = []
64 lines.extend(get_version_comment(conn))
65 lines.extend(get_py_oids(conn))
66
67 update_file(fn, lines)
68 sp.check_call(["black", "-q", fn])
69
70
71def update_cython_oids(conn: Connection) -> None:

Callers 1

mainFunction · 0.85

Calls 3

get_version_commentFunction · 0.85
get_py_oidsFunction · 0.85
update_fileFunction · 0.70

Tested by

no test coverage detected