diff --git a/setup.py b/setup.py index 1275f4fd1..0f4d5fb38 100644 --- a/setup.py +++ b/setup.py @@ -100,7 +100,8 @@ def _lib_include(root): def _read(file): - return open(file, 'rb').read() + with open(file, 'rb') as fp: + return fp.read() try: