From 40358ac82b948ea8377d5ca32b576def31b39a84 Mon Sep 17 00:00:00 2001 From: Jose Eduardo Date: Fri, 19 Jul 2019 16:21:56 +0100 Subject: Avoid unclosed file warning --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e39446f..9634625 100644 --- a/setup.py +++ b/setup.py @@ -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', -- cgit v1.2.1