Close file

This commit is contained in:
meles5 2015-10-29 16:33:20 +01:00
parent f807842a52
commit 1488f59d8f

View File

@ -147,6 +147,7 @@ class AsciiDoc:
last_line = line
current_lines = outfp.getvalue()
outfp.close()
with open(modified_src, "w+") as final_version:
final_version.write(title + "\n\n" + header + current_lines)