summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)