]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
style: blank line after the autogenerated section
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 6 Jan 2023 14:16:39 +0000 (14:16 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 9 Jan 2023 17:44:16 +0000 (17:44 +0000)
psycopg/psycopg/_oids.py
psycopg_c/psycopg_c/_psycopg/oids.pxd
tools/update_oids.py

index f8aeeaa39a30c195aafbeac114cdc091b09baaef..c104e8f37ef0f2cb6ff572e9305a1b940e635dc4 100644 (file)
@@ -93,4 +93,5 @@ VARCHAR_OID = 1043
 XID_OID = 28
 XID8_OID = 5069
 XML_OID = 142
+
 # autogenerated: end
index a958dcadaea68c5bc2c4830df0c7541504899703..78afb57d653b16a533df28d9c7a29093f9241656 100644 (file)
@@ -89,4 +89,5 @@ cdef enum:
     XID_OID = 28
     XID8_OID = 5069
     XML_OID = 142
+
     # autogenerated: end
index 942d2ac57f817642f933da10dbbe27dbed1cf409..3eb8f2a29ffcb99177bb819cc3d7c4f5652415e2 100755 (executable)
@@ -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))