@Paebbels brought up a couple of good issues in #4 that are present in main. - [x] Python 2 class style declaration `class VhdlObject(obect):` should be `class VhdlObject:` (fixed in #4) - [x] Use of `.format` instead of `f""` (fixed in https://github.com/hdl/pyHDLParser/pull/6) - [ ] `os.path.splitext(fname)[1].lower() in ('.vhdl', '.vhd')` should use `pathlib` instead Finally, while not directly Python 2 related. There's the issue of Sphinx's parsing of arguments for documentation: - [ ] `Args:` should be `:param [ParamName]:` See [Writing docstrings - Sphinx-RTD-Tutorial](https://sphinx-rtd-tutorial.readthedocs.io/en/latest/docstrings.html)
@Paebbels brought up a couple of good issues in #4 that are present in main.
class VhdlObject(obect):should beclass VhdlObject:(fixed in VHDL parser from andres manelli's fork for entity parsing support #4).formatinstead off""(fixed in Python 2 to 3 migration changes: format strings #6)os.path.splitext(fname)[1].lower() in ('.vhdl', '.vhd')should usepathlibinsteadFinally, while not directly Python 2 related. There's the issue of Sphinx's parsing of arguments for documentation:
Args:should be:param [ParamName]:See Writing docstrings - Sphinx-RTD-Tutorial