Skip to content

Commit 36ff277

Browse files
committed
setup.py: Update syntax for Python 3
1 parent 4432346 commit 36ff277

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
# Load version string
55
_verfile = os.path.join(os.path.dirname(__file__), 'openslide', '_version.py')
6-
exec open(_verfile)
6+
with open(_verfile) as _fh:
7+
exec(_fh.read())
78

89
setup(
910
name = 'openslide-python',

0 commit comments

Comments
 (0)