diff options
author | Peng Wu <alexepico@gmail.com> | 2013-04-18 15:06:18 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2013-04-18 15:28:53 +0800 |
commit | 3e7cb571f2549aa51ed8bfb071392874e2e220b3 (patch) | |
tree | c9a9575467063e1fc5055ced63468ce0308ded57 /lib | |
parent | 7dda5752c9dd8fefaa69dfb1e1e6f00d044d3019 (diff) | |
download | trainer-3e7cb571f2549aa51ed8bfb071392874e2e220b3.tar.gz trainer-3e7cb571f2549aa51ed8bfb071392874e2e220b3.tar.xz trainer-3e7cb571f2549aa51ed8bfb071392874e2e220b3.zip |
fixes with usage
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/utils.py b/lib/utils.py index e734ee9..b9343ad 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -23,14 +23,12 @@ class EpochError(Exception): def read_file(infile): with open(infile, 'r') as f: data = ''.join(f.readlines()) - f.close() return data def write_file(outfile, data): with open(outfile, 'w') as f: f.writelines([data]) - f.close() return |