From: Daniele Varrazzo Date: Fri, 6 Jan 2023 14:16:39 +0000 (+0000) Subject: style: blank line after the autogenerated section X-Git-Tag: pool-3.2.0~135^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fc8bc7ba41948d14263c5384484915d056430f3;p=thirdparty%2Fpsycopg.git style: blank line after the autogenerated section --- diff --git a/psycopg/psycopg/_oids.py b/psycopg/psycopg/_oids.py index f8aeeaa39..c104e8f37 100644 --- a/psycopg/psycopg/_oids.py +++ b/psycopg/psycopg/_oids.py @@ -93,4 +93,5 @@ VARCHAR_OID = 1043 XID_OID = 28 XID8_OID = 5069 XML_OID = 142 + # autogenerated: end diff --git a/psycopg_c/psycopg_c/_psycopg/oids.pxd b/psycopg_c/psycopg_c/_psycopg/oids.pxd index a958dcada..78afb57d6 100644 --- a/psycopg_c/psycopg_c/_psycopg/oids.pxd +++ b/psycopg_c/psycopg_c/_psycopg/oids.pxd @@ -89,4 +89,5 @@ cdef enum: XID_OID = 28 XID8_OID = 5069 XML_OID = 142 + # autogenerated: end diff --git a/tools/update_oids.py b/tools/update_oids.py index 942d2ac57..3eb8f2a29 100755 --- a/tools/update_oids.py +++ b/tools/update_oids.py @@ -228,7 +228,7 @@ def update_file(fn: Path, new: List[str]) -> None: for i, line in enumerate(lines) if re.match(r"\s*#\s*autogenerated:\s+(start|end)", line) ] - lines[istart + 1 : iend] = new + lines[istart + 1 : iend] = new + [""] with fn.open("w") as f: f.write("\n".join(lines))