Skip to content

Commit

Permalink
Fix ResourceWarning: unclosed file in setup.py
Browse files Browse the repository at this point in the history
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
  • Loading branch information
BoboTiG authored and jonathanslenders committed Jan 7, 2019
1 parent 76fbc65 commit 3f66e62
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
from setuptools import setup, find_packages


long_description = open(
os.path.join(
os.path.dirname(__file__),
'README.rst'
)
).read()
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
long_description = f.read()


setup(
Expand Down

0 comments on commit 3f66e62

Please sign in to comment.