Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
Avoid ResourceWarning in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Dec 26, 2014
1 parent 758dd78 commit 8b04db2
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 @@ -17,7 +17,8 @@


def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
with open(os.path.join(os.path.dirname(__file__), *rnames)) as f:
return f.read()


setup(
Expand Down

0 comments on commit 8b04db2

Please sign in to comment.