diff options
author | Ray Holder <ray.holder+github@gmail.com> | 2014-08-25 19:20:16 -0500 |
---|---|---|
committer | Ray Holder <ray.holder+github@gmail.com> | 2014-08-25 19:20:16 -0500 |
commit | ce99e6ccd29e604bf0549d3de5cc495300e290d7 (patch) | |
tree | 463dd75e8e174e57c734e0e33044a54218cfe241 | |
parent | 709c1770aac577307352d2aae525df5d79fb73c5 (diff) | |
parent | 6504edc5966e597dca703d3a02b1d3f878f5bc9c (diff) | |
download | retrying-ce99e6ccd29e604bf0549d3de5cc495300e290d7.tar.gz |
Merge pull request #15 from svisser/patch-1
Ensure file handles are closed using with statement
-rw-r--r-- | setup.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -29,12 +29,17 @@ CLASSIFIERS = [ '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', |