From 927a54f8808aafeb4f685a4c6e00ccabd929fc98 Mon Sep 17 00:00:00 2001 From: Simeon Visser Date: Sun, 24 Aug 2014 16:55:38 +0100 Subject: [PATCH] Ensure file handle is closed using with statement --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index b5710f7..b5c6c39 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,8 @@ from distutils.core import setup +with open('README.txt') as readme: + long_description = readme.read() + setup( name='Gooey', version='0.1.0', @@ -16,5 +19,5 @@ setup( url='http://pypi.python.org/pypi/TowelStuff/', license='LICENSE.txt', description='Useful towel-related stuff.', - long_description=open('README.txt').read() -) \ No newline at end of file + long_description=long_description +)