diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-07-30 23:55:18 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:33 +0200 |
commit | 5314281f0b8090f820ae64b652e40c300c2bdec2 (patch) | |
tree | 56bb66b407cd669786420ae8d98b76b5fb6ad2b2 /pyGHDL/dom | |
parent | 8a71357337e46c256f9a243fb574dd78dcec67bc (diff) | |
download | ghdl-5314281f0b8090f820ae64b652e40c300c2bdec2.tar.gz ghdl-5314281f0b8090f820ae64b652e40c300c2bdec2.tar.bz2 ghdl-5314281f0b8090f820ae64b652e40c300c2bdec2.zip |
Fixes.
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r-- | pyGHDL/dom/Object.py | 28 | ||||
-rw-r--r-- | pyGHDL/dom/formatting/prettyprint.py | 3 |
2 files changed, 16 insertions, 15 deletions
diff --git a/pyGHDL/dom/Object.py b/pyGHDL/dom/Object.py index b14d0094c..b83f352a4 100644 --- a/pyGHDL/dom/Object.py +++ b/pyGHDL/dom/Object.py @@ -80,18 +80,18 @@ class Constant(VHDLModel_Constant, DOMMixin): return cls( constantNode, - list( + [ name, - ), + ], subtypeIndication, defaultExpression, ) else: return DeferredConstant( constantNode, - list( + [ name, - ), + ], subtypeIndication, ) @@ -113,9 +113,9 @@ class DeferredConstant(VHDLModel_DeferredConstant, DOMMixin): return cls( constantNode, - list( + [ name, - ), + ], subtypeIndication, ) @@ -148,9 +148,9 @@ class Variable(VHDLModel_Variable, DOMMixin): return cls( variableNode, - list( + [ name, - ), + ], subtypeIndication, defaultExpression, ) @@ -171,9 +171,9 @@ class SharedVariable(VHDLModel_SharedVariable, DOMMixin): return cls( variableNode, - list( + [ name, - ), + ], subtypeIndication, ) @@ -204,9 +204,9 @@ class Signal(VHDLModel_Signal, DOMMixin): return cls( signalNode, - list( + [ name, - ), + ], subtypeIndication, defaultExpression, ) @@ -229,8 +229,8 @@ class File(VHDLModel_File, DOMMixin): return cls( fileNode, - list( + [ name, - ), + ], subtypeIndication, ) diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py index 8ab854212..a30258443 100644 --- a/pyGHDL/dom/formatting/prettyprint.py +++ b/pyGHDL/dom/formatting/prettyprint.py @@ -41,7 +41,8 @@ from pyVHDLModel.SyntaxModel import ( WithDefaultExpressionMixin, Function, BaseType, - FullType, BaseConstant, + FullType, + BaseConstant, ) from pyGHDL import GHDLBaseException |