Skip to content

Commit a13a0d8

Browse files
Merge pull request #280 from galenseilis/fix-open-with-context-manager
open version file using context manager
2 parents 15ddce3 + 38d81c3 commit a13a0d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
#
6363
# The short X.Y version.
6464
# Read in the version number
65-
exec(open("../ciw/version.py", "r").read())
65+
with open("../ciw/version.py", 'r') as version_file_handle:
66+
exec(version_file_handle.read())
6667
version = __version__
6768
# The full version, including alpha/beta/rc tags.
6869
release = version

0 commit comments

Comments
 (0)