fix bug that existing template breaks
This commit is contained in:
parent
316a638d9e
commit
0a4c2301c7
@ -319,8 +319,9 @@ def insert_code_to_class(path, base_class, new_code):
|
|||||||
|
|
||||||
lines = lines[:end_line_no] + func_lines + lines[end_line_no:]
|
lines = lines[:end_line_no] + func_lines + lines[end_line_no:]
|
||||||
|
|
||||||
|
body = '\n'.join(lines) + '\n'
|
||||||
with open(path, 'w') as f:
|
with open(path, 'w') as f:
|
||||||
f.write('\n'.join(lines))
|
f.write(body)
|
||||||
|
|
||||||
|
|
||||||
def insert_query_codes(service, operation):
|
def insert_query_codes(service, operation):
|
||||||
|
Loading…
Reference in New Issue
Block a user