Skip to content

Commit 81838bc

Browse files
authored
Merge pull request #99 from leonardt/patch-1
Use context manager to avoid ResourceWarning
2 parents d04b8f3 + dd327b9 commit 81838bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyverilog/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33

44
import os
55

6-
__version__ = open(os.path.join(os.path.dirname(__file__), "VERSION")).read().splitlines()[0]
6+
with open(os.path.join(os.path.dirname(__file__), "VERSION")) as f:
7+
__version__ = f.read().splitlines()[0]

0 commit comments

Comments
 (0)