Skip to content

Commit

Permalink
pyverilog: cache lexer and remove resource leakage
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Jan 3, 2024
1 parent 1950227 commit b9b6f33
Show file tree
Hide file tree
Showing 5 changed files with 254 additions and 220 deletions.
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]
Loading

0 comments on commit b9b6f33

Please sign in to comment.