Merge pull request #177 from michaelrice/setup_patch

Ensure file handle is closed by using with statement
This commit is contained in:
Shawn Hartsock 2014-12-18 12:14:52 -05:00
commit 7986a824cf

View File

@ -18,7 +18,8 @@ import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
with open(os.path.join(os.path.dirname(__file__), fname)) as fn:
return fn.read()
with open('requirements.txt') as f:
required = f.read().splitlines()