aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-23 16:32:45 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-23 16:32:45 +0200
commit240b4fdd90a9f3ca04e8e168bffdc92bea2ca3f3 (patch)
treee1706cb19a2439e3d94657e54c688a36c703f048
parent11f1ebbc80250555474cfe22e1db10553e112a11 (diff)
downloadghdl-240b4fdd90a9f3ca04e8e168bffdc92bea2ca3f3.tar.gz
ghdl-240b4fdd90a9f3ca04e8e168bffdc92bea2ca3f3.tar.bz2
ghdl-240b4fdd90a9f3ca04e8e168bffdc92bea2ca3f3.zip
Minor fixes and pinned pyVHDLModel version to v0.10.3.
-rwxr-xr-xpyGHDL/cli/DOM.py4
-rw-r--r--pyGHDL/libghdl/_decorator.py2
-rw-r--r--pyGHDL/requirements.txt4
3 files changed, 5 insertions, 5 deletions
diff --git a/pyGHDL/cli/DOM.py b/pyGHDL/cli/DOM.py
index 68af8ec1a..dceafc629 100755
--- a/pyGHDL/cli/DOM.py
+++ b/pyGHDL/cli/DOM.py
@@ -10,7 +10,7 @@ from pydecor import export
from pyGHDL import GHDLBaseException
from pyGHDL.libghdl import LibGHDLException
from pyGHDL.dom.Common import DOMException
-from pyGHDL.dom.NonStandard import Design, Document, Library
+from pyGHDL.dom.NonStandard import Design, Document
from pyGHDL.dom.formatting.prettyprint import PrettyPrint, PrettyPrintException
__all__ = []
@@ -45,7 +45,7 @@ class Application:
def handleException(ex):
if isinstance(ex, PrettyPrintException):
print("PP:", ex)
- return 5
+ return 0
elif isinstance(ex, DOMException):
print("DOM:", ex)
ex2 = ex.__cause__
diff --git a/pyGHDL/libghdl/_decorator.py b/pyGHDL/libghdl/_decorator.py
index 2001cb37e..a680cc9d1 100644
--- a/pyGHDL/libghdl/_decorator.py
+++ b/pyGHDL/libghdl/_decorator.py
@@ -93,7 +93,7 @@ def BindToLibGHDL(subprogramName):
return None
elif typ is int:
return c_int32
- elif type is float:
+ elif typ is float:
return c_double
elif typ is bool:
return c_bool
diff --git a/pyGHDL/requirements.txt b/pyGHDL/requirements.txt
index 4fe037972..6198d8044 100644
--- a/pyGHDL/requirements.txt
+++ b/pyGHDL/requirements.txt
@@ -1,3 +1,3 @@
pydecor>=2.0.1
-#pyVHDLModel==0.10.2
-https://github.com/VHDL/pyVHDLModel/archive/dev.zip#pyVHDLModel
+pyVHDLModel==0.10.3
+#https://github.com/VHDL/pyVHDLModel/archive/dev.zip#pyVHDLModel