summaryrefslogtreecommitdiffstats
path: root/reduce.py
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-07-15 13:31:42 +0800
committerPeng Wu <alexepico@gmail.com>2011-07-15 13:31:42 +0800
commit2c28a5c87d904f69dcc554070038995390903f76 (patch)
tree315807ee7eaf12d5e629c886f37842c697b9cc50 /reduce.py
parent51b0ec4e9ca960cc3e018207c50a4b2eaf692f9f (diff)
downloadtrainer-2c28a5c87d904f69dcc554070038995390903f76.tar.gz
trainer-2c28a5c87d904f69dcc554070038995390903f76.tar.xz
trainer-2c28a5c87d904f69dcc554070038995390903f76.zip
refine reduce.py
Diffstat (limited to 'reduce.py')
-rwxr-xr-xreduce.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/reduce.py b/reduce.py
index 01f8c8e..5fa3731 100755
--- a/reduce.py
+++ b/reduce.py
@@ -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)