Skip to content

Commit

Permalink
Merge pull request #52 from BoboTiG/fix-resource-warning
Browse files Browse the repository at this point in the history
Fix a ResourceWarning: unclosed file in setup.py
  • Loading branch information
amol- committed Nov 5, 2020
2 parents b7dc736 + 2408f3f commit 9b7ee38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

HERE = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(HERE, 'README.rst')).read()
with open(os.path.join(HERE, 'README.rst')) as fh:
README = fh.read()
except IOError:
README = ''

Expand Down

0 comments on commit 9b7ee38

Please sign in to comment.