diff options
author | Jose Eduardo <jose.eduardo.gd@gmail.com> | 2019-07-19 16:21:56 +0100 |
---|---|---|
committer | Jose Eduardo <jose.eduardo.gd@gmail.com> | 2019-07-19 16:21:56 +0100 |
commit | 40358ac82b948ea8377d5ca32b576def31b39a84 (patch) | |
tree | 198f0b80c4f0d2ae940ad2b7f6fb8ee2c783ae68 | |
parent | 27cebc56a0f6a900eeb897512879d545095f410b (diff) | |
download | isodate-40358ac82b948ea8377d5ca32b576def31b39a84.tar.gz |
Avoid unclosed file warning
-rw-r--r-- | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -30,7 +30,8 @@ from setuptools import setup def read(*rnames): - return open(os.path.join(os.path.dirname(__file__), *rnames)).read() + with open(os.path.join(os.path.dirname(__file__), *rnames)) as read_file: + return read_file.read() setup(name='isodate', |