Commit 4dca7144 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Close 2 files that we open so we know that the writes have actually happened

parent c839fe82
...@@ -760,11 +760,13 @@ def split_file(in_fn, delimiter, out1_fn, out2_fn): ...@@ -760,11 +760,13 @@ def split_file(in_fn, delimiter, out1_fn, out2_fn):
out1.write(line) out1.write(line)
line = infile.readline() line = infile.readline()
line = re.sub('\r', '', line) line = re.sub('\r', '', line)
out1.close()
line = infile.readline() line = infile.readline()
while (line != ''): while (line != ''):
out2.write(line) out2.write(line)
line = infile.readline() line = infile.readline()
out2.close()
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Generate External Core for the given program, then compile the resulting Core # Generate External Core for the given program, then compile the resulting Core
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment