Skip to content

Commit

Permalink
Merge pull request rholder#15 from svisser/patch-1
Browse files Browse the repository at this point in the history
Ensure file handles are closed using with statement
  • Loading branch information
rholder committed Aug 26, 2014
2 parents 709c177 + 6504edc commit ce99e6c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@
'Topic :: Utilities',
]

with open('README.rst') as file_readme:
readme = file_readme.read()

with open('HISTORY.rst') as file_history:
history = file_history.read()

settings.update(
name='retrying',
version='1.2.3-dev',
description='Retrying',
long_description=open('README.rst').read() + '\n\n' +
open('HISTORY.rst').read(),
long_description=readme + '\n\n' + history,
author='Ray Holder',
license='Apache 2.0',
url='https://github.com/rholder/retrying',
Expand Down

0 comments on commit ce99e6c

Please sign in to comment.