From 55e765a2064868cd940fa8fd0ef085a5ef2add90 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 22 Aug 2022 18:00:14 -0700 Subject: [PATCH] [script] slight improve on formatting --- openfpga_flow/scripts/arch_file_updater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()