fix bug that existing template breaks

This commit is contained in:
Toshiya Kawasaki 2017-09-23 17:14:04 +09:00
parent 316a638d9e
commit 0a4c2301c7

View File

@ -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:]
body = '\n'.join(lines) + '\n'
with open(path, 'w') as f:
f.write('\n'.join(lines))
f.write(body)
def insert_query_codes(service, operation):