diff --git a/openfpga_flow/scripts/arch_file_updater.py b/openfpga_flow/scripts/arch_file_updater.py index be198ef65..2bea7be4e 100644 --- a/openfpga_flow/scripts/arch_file_updater.py +++ b/openfpga_flow/scripts/arch_file_updater.py @@ -86,7 +86,8 @@ def convert_arch_xml_from_v1p1_to_v1p2(input_fname, output_fname): # Output the modified content with open(output_fname, "w") as output_xml_f: - doc.writexml(output_xml_f, indent=" ", newl='\n') + doc.writexml(output_xml_f, indent=" ", newl='') + doc.unlink() # Finish up end_time = time.time()