Skip to content

Commit 1df0c19

Browse files
alexfiklinducer
authored andcommitted
conf.py: make sure the version file is closed
1 parent 4ecbeca commit 1df0c19

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/conf.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
copyright = "2014-21, Meshmode contributors"
1717

1818
ver_dic = {}
19-
exec(
20-
compile(
21-
open("../meshmode/version.py").read(), "../meshmode/version.py", "exec"),
22-
ver_dic)
19+
with open("../meshmode/version.py") as _inf:
20+
exec(compile(_inf.read(), "../meshmode/version.py", "exec"), ver_dic)
21+
2322
version = ".".join(str(x) for x in ver_dic["VERSION"])
2423
# The full version, including alpha/beta/rc tags.
2524
release = ver_dic["VERSION_TEXT"]

0 commit comments

Comments
 (0)