Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenGuidou committed Jun 5, 2024
1 parent b1d49f6 commit f2779f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/Python2To3Migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def run_generation(self, retriever, llm, output_parser, clone_dir) -> None:
if file_parsed is not None:
migrated_content = file_parsed.group(1)
f = open(clone_dir + file, "w")
f.write(migrated_content)
written = f.write(migrated_content)
print("File written: {}, size: {}".format(clone_dir + file, written))
f.close()
else:
print("File parsing failure")
Expand Down

0 comments on commit f2779f0

Please sign in to comment.