Skip to content

Commit 641e78a

Browse files
committed
setup.py: Fix "unclosed file" ResourceWarning
1 parent 7d081c1 commit 641e78a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
with open(_verfile) as _fh:
77
exec(_fh.read())
88

9+
with open('README.rst') as _fh:
10+
_long_description = _fh.read()
11+
912
setup(
1013
name='openslide-python',
1114
version=__version__,
@@ -25,7 +28,7 @@
2528
maintainer='OpenSlide project',
2629
maintainer_email='[email protected]',
2730
description='Python interface to OpenSlide',
28-
long_description=open('README.rst').read(),
31+
long_description=_long_description,
2932
license='GNU Lesser General Public License, version 2.1',
3033
keywords='openslide whole-slide image virtual slide library',
3134
url='http://openslide.org/',

0 commit comments

Comments
 (0)