From 2c28a5c87d904f69dcc554070038995390903f76 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 15 Jul 2011 13:31:42 +0800 Subject: refine reduce.py --- reduce.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'reduce.py') 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) -- cgit