From 3570600c6c58cfb43dd4b83734a91a0cee38a613 Mon Sep 17 00:00:00 2001 From: Simeon Visser Date: Sat, 23 Aug 2014 00:52:40 +0100 Subject: [PATCH] Ensure file handle is closed using with statement --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7f2d57e9..1c13d66f 100644 --- a/setup.py +++ b/setup.py @@ -15,11 +15,14 @@ m = re.search("__version__ = '(\d+\.\d+\.\d+)'", source, re.M) __version__ = m.groups()[0] +with open('README.rst') as readme: + long_description = readme.read() + setup( name="python-intercom", version=__version__, description="Intercom API wrapper", - long_description=open('README.rst').read(), + long_description=long_description, author="John Keyes", author_email="john@keyes.ie", license="MIT License",