Skip to content
Myr

close files in setup.py

Before adoption: this commit came in with the history the project adopted, so no landing records it.

otherwise python3.4 warns

authored by Alex Gaynor · committed by Alex Gaynor · parent 25f86f1 · Browse files · 1 file+9 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−3 removed

  • other:+9 added−3 removed

1 file+9 added−3 removed

modified:setup.py+9 added-3 removed
24 unmodified lines
25]2627requires = []2829with open('README.rst') as f:30 readme = f.read()31with open('HISTORY.rst') as f:32 history = f.read()33with open('LICENSE') as f:34 license = f.read()3536setup(37 name='requests',38 version=requests.__version__,39 description='Python HTTP for Humans.',33 long_description=open('README.rst').read() + '\n\n' +34 open('HISTORY.rst').read(),40 long_description=readme + '\n\n' + history,41 author='Kenneth Reitz',42 author_email='me@kennethreitz.com',43 url='http://python-requests.org',44 packages=packages,45 package_data={'': ['LICENSE', 'NOTICE'], 'requests': ['*.pem']},46 package_dir={'requests': 'requests'},47 include_package_data=True,48 install_requires=requires,43 license=open('LICENSE').read(),49 license=license,50 zip_safe=False,51 classifiers=(52 'Development Status :: 5 - Production/Stable',53 'Intended Audience :: Developers',
10 unmodified lines