diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-17 23:12:36 +0200 |
---|---|---|
committer | Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com> | 2021-06-17 22:53:27 +0100 |
commit | 0c726ac36be1ad1cba24eb7eff476b9a32e643fb (patch) | |
tree | 524d81d4df412cca136b766305506574b34bf15e /pyGHDL/libghdl/__init__.py | |
parent | e5891f3900f5e58df37d32c2c18a0f339c094cf4 (diff) | |
download | ghdl-0c726ac36be1ad1cba24eb7eff476b9a32e643fb.tar.gz ghdl-0c726ac36be1ad1cba24eb7eff476b9a32e643fb.tar.bz2 ghdl-0c726ac36be1ad1cba24eb7eff476b9a32e643fb.zip |
Black found more files - strange.
Executed black to make code unreadable.
(cherry picked from commit 1b34c2368428b1ec295073ee47d201ac1def35f6)
Diffstat (limited to 'pyGHDL/libghdl/__init__.py')
-rw-r--r-- | pyGHDL/libghdl/__init__.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pyGHDL/libghdl/__init__.py b/pyGHDL/libghdl/__init__.py index 1d1701aaa..1477d9361 100644 --- a/pyGHDL/libghdl/__init__.py +++ b/pyGHDL/libghdl/__init__.py @@ -42,10 +42,15 @@ from pydecor import export from pyGHDL import GHDLBaseException from pyGHDL.libghdl._types import Iir -#from pyGHDL.libghdl._decorator import BindToLibGHDL + +# from pyGHDL.libghdl._decorator import BindToLibGHDL from pyGHDL.libghdl.version import __version__ +class LibGHDLException(GHDLBaseException): + pass + + def _get_libghdl_name() -> Path: """Get the name of the libghdl library (with version and extension)""" ver = __version__.replace("-", "_").replace(".", "_") @@ -159,7 +164,7 @@ def finalize() -> None: @export -#@BindToLibGHDL("options__initialize") +# @BindToLibGHDL("options__initialize") def initialize() -> None: """Initialize or re-initialize the shared library.""" libghdl.options__initialize() @@ -179,7 +184,7 @@ def set_option(Opt: str) -> bool: @export -#@BindToLibGHDL("libghdl__analyze_init") +# @BindToLibGHDL("libghdl__analyze_init") def analyze_init() -> None: """ Initialize the analyzer. @@ -191,7 +196,7 @@ def analyze_init() -> None: @export -#@BindToLibGHDL("libghdl__analyze_init_status") +# @BindToLibGHDL("libghdl__analyze_init_status") def analyze_init_status() -> int: """ Initialize the analyzer. @@ -215,12 +220,7 @@ def analyze_file(fname: str) -> Iir: @export -#@BindToLibGHDL("ghdllocal__disp_config_prefixes") +# @BindToLibGHDL("ghdllocal__disp_config_prefixes") def disp_config() -> None: """Display the configured prefixes for libghdl.""" libghdl.ghdllocal__disp_config_prefixes() - - -@export -class LibGHDLException(GHDLBaseException): - pass |