Skip to content

Commit

Permalink
Close 2 files that we open so we know that the writes have actually h…
Browse files Browse the repository at this point in the history
…appened
  • Loading branch information
igfoo committed Apr 16, 2007
1 parent a734c56 commit 9293f0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,11 +760,13 @@ def split_file(in_fn, delimiter, out1_fn, out2_fn):
out1.write(line)
line = infile.readline()
line = re.sub('\r', '', line)
out1.close()

line = infile.readline()
while (line != ''):
out2.write(line)
line = infile.readline()
out2.close()

# -----------------------------------------------------------------------------
# Generate External Core for the given program, then compile the resulting Core
Expand Down

0 comments on commit 9293f0a

Please sign in to comment.