Skip to content

Commit

Permalink
Merge pull request #99 from leonardt/patch-1
Browse files Browse the repository at this point in the history
Use context manager to avoid ResourceWarning
  • Loading branch information
shtaxxx authored Dec 23, 2022
2 parents d04b8f3 + dd327b9 commit 81838bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyverilog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

import os

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

0 comments on commit 81838bc

Please sign in to comment.