From: Alex Gaynor Date: Sat, 26 Oct 2013 23:43:08 +0000 (-0700) Subject: close files in setup.py X-Git-Tag: v2.1.0~33^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3488f3ade7819c79f3628ef2c87aff6e0f2f3946;p=services%2Fpython-requests.git close files in setup.py otherwise python3.4 warns --- diff --git a/setup.py b/setup.py index 7de446f..e22be01 100755 --- a/setup.py +++ b/setup.py @@ -26,12 +26,18 @@ packages = [ requires = [] +with open('README.rst') as f: + readme = f.read() +with open('HISTORY.rst') as f: + history = f.read() +with open('LICENSE') as f: + license = f.read() + setup( name='requests', version=requests.__version__, description='Python HTTP for Humans.', - long_description=open('README.rst').read() + '\n\n' + - open('HISTORY.rst').read(), + long_description=readme + '\n\n' + history, author='Kenneth Reitz', author_email='me@kennethreitz.com', url='http://python-requests.org', @@ -40,7 +46,7 @@ setup( package_dir={'requests': 'requests'}, include_package_data=True, install_requires=requires, - license=open('LICENSE').read(), + license=license, zip_safe=False, classifiers=( 'Development Status :: 5 - Production/Stable',