aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-07-30 23:55:18 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-08-23 16:35:33 +0200
commit5314281f0b8090f820ae64b652e40c300c2bdec2 (patch)
tree56bb66b407cd669786420ae8d98b76b5fb6ad2b2
parent8a71357337e46c256f9a243fb574dd78dcec67bc (diff)
downloadghdl-5314281f0b8090f820ae64b652e40c300c2bdec2.tar.gz
ghdl-5314281f0b8090f820ae64b652e40c300c2bdec2.tar.bz2
ghdl-5314281f0b8090f820ae64b652e40c300c2bdec2.zip
Fixes.
-rwxr-xr-xpyGHDL/cli/dom.py7
-rw-r--r--pyGHDL/dom/Object.py28
-rw-r--r--pyGHDL/dom/formatting/prettyprint.py3
3 files changed, 19 insertions, 19 deletions
diff --git a/pyGHDL/cli/dom.py b/pyGHDL/cli/dom.py
index 83ef7c42e..63350d729 100755
--- a/pyGHDL/cli/dom.py
+++ b/pyGHDL/cli/dom.py
@@ -297,7 +297,7 @@ class Application(LineTerminal, ArgParseMixin):
)
)
elif args.Directory is not None:
- d : Path = args.Directory
+ d: Path = args.Directory
if not d.exists():
self.WriteError("Directory '{0!s}' does not exist.".format(d))
@@ -311,12 +311,11 @@ class Application(LineTerminal, ArgParseMixin):
DOM translation time: {:5.3f} us
"""
).format(
- document.LibGHDLProcessingTime * 10**6,
- document.DOMTranslationTime * 10**6,
+ document.LibGHDLProcessingTime * 10 ** 6,
+ document.DOMTranslationTime * 10 ** 6,
)
)
-
PP = PrettyPrint()
buffer = []
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