Merge pull request #2208 from jdufresne/setup-py-open

Close file in setup.py after finished reading
This commit is contained in:
wiredfool 2016-11-11 16:58:59 +00:00 committed by GitHub
commit 915dd05f22

View File

@ -105,7 +105,8 @@ def _cmd_exists(cmd):
)
def _read(file):
return open(file, 'rb').read()
with open(file, 'rb') as fp:
return fp.read()
try: