Skip to content

Commit 3f66e62

Browse files
BoboTiGjonathanslenders
authored andcommitted
Fix ResourceWarning: unclosed file in setup.py
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
1 parent 76fbc65 commit 3f66e62

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

setup.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
from setuptools import setup, find_packages
44

55

6-
long_description = open(
7-
os.path.join(
8-
os.path.dirname(__file__),
9-
'README.rst'
10-
)
11-
).read()
6+
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
7+
long_description = f.read()
128

139

1410
setup(

0 commit comments

Comments
 (0)