diff options
author | Peng Wu <alexepico@gmail.com> | 2011-07-15 13:31:42 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-07-15 13:31:42 +0800 |
commit | 2c28a5c87d904f69dcc554070038995390903f76 (patch) | |
tree | 315807ee7eaf12d5e629c886f37842c697b9cc50 /reduce.py | |
parent | 51b0ec4e9ca960cc3e018207c50a4b2eaf692f9f (diff) | |
download | trainer-2c28a5c87d904f69dcc554070038995390903f76.tar.gz trainer-2c28a5c87d904f69dcc554070038995390903f76.tar.xz trainer-2c28a5c87d904f69dcc554070038995390903f76.zip |
refine reduce.py
Diffstat (limited to 'reduce.py')
-rwxr-xr-x | reduce.py | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -4,18 +4,12 @@ import os.path import sys from argparse import ArgumentParser from myconfig import MyConfig +from utils import read_file config = MyConfig() -def read_file(infile): - with open(infile, 'r') as f: - data = ''.join(f.readlines()) - f.close() - return data - - def handleError(error): sys.exit(error) |