Skip to content

Commit d6194e9

Browse files
committed
feat(python): rearrange package and add version comment
- Place the 'package core' declaration on top of the file - Add a comment indicating the Python version used for generation - Automatically generate the 'Escape' function - Update the header to include version comment (main)
1 parent af779fe commit d6194e9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/py/reserved_keywoards.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
with open(path, "w") as go_file:
1111
# Write the function header for escape
12-
go_file.write(f"""package core
13-
// Auto-generated using python; DO NOT EDIT
14-
// py {sys.version}""")
12+
go_file.write(f"""// Package core Auto-generated using python; DO NOT EDIT
13+
// py {sys.version}
14+
package core""")
1515
go_file.write("""
1616
func Escape(s string) string {
1717
if IsReserved(s) {

0 commit comments

Comments
 (0)