Permalink
Browse files

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

…appened
  • Loading branch information...
1 parent a734c56 commit 9293f0a286ff82f5bc50cbbeff34563be039a7a8 @igfoo igfoo committed Apr 16, 2007
Showing with 2 additions and 0 deletions.
  1. +2 −0 driver/testlib.py
View
@@ -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

0 comments on commit 9293f0a

Please sign in to comment.