diff --git a/setup.py b/setup.py index f2fe286da..5d75884d4 100644 --- a/setup.py +++ b/setup.py @@ -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: