We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b476cf commit eb9e742Copy full SHA for eb9e742
setup.py
@@ -9,6 +9,7 @@
9
# file except in compliance with the License. You may obtain a copy of the
10
# License at http://opensource.org/licenses/BSD-2-Clause
11
12
+from contextlib import closing
13
import os
14
import re
15
@@ -33,7 +34,8 @@ def get_version():
33
34
def get_long_description():
35
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
36
changes = os.path.join(os.path.dirname(__file__), 'CHANGES.rst')
- return open(readme).read() + '\n' + open(changes).read()
37
+ with closing(open(readme)) as hreadme, closing(open(changes)) as hchanges:
38
+ return hreadme.read() + '\n' + hchanges.read()
39
40
41
setup(
0 commit comments