aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/formatting
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-21 19:19:50 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-22 12:26:59 +0200
commitf0517014231ee735c180a3150b55b878f6af763d (patch)
treedc44d1f8aec759ea01172b1084173cfb4a68404a /pyGHDL/dom/formatting
parentba097bd3118db3135e75b913cae81973995777cd (diff)
downloadghdl-f0517014231ee735c180a3150b55b878f6af763d.tar.gz
ghdl-f0517014231ee735c180a3150b55b878f6af763d.tar.bz2
ghdl-f0517014231ee735c180a3150b55b878f6af763d.zip
Handle Physical...Literals
Diffstat (limited to 'pyGHDL/dom/formatting')
-rw-r--r--pyGHDL/dom/formatting/prettyprint.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py
index 7d07abcfe..cdb1964c0 100644
--- a/pyGHDL/dom/formatting/prettyprint.py
+++ b/pyGHDL/dom/formatting/prettyprint.py
@@ -20,7 +20,8 @@ from pyGHDL.dom.DesignUnit import (
Package,
PackageBody,
Configuration,
- Context, Component,
+ Context,
+ Component,
)
from pyGHDL.dom.Object import Constant, Signal
from pyGHDL.dom.InterfaceItem import (
@@ -167,7 +168,9 @@ class PrettyPrint:
def formatComponent(self, component: Component, level: int = 0) -> StringBuffer:
buffer = []
prefix = " " * level
- buffer.append("{prefix}- Component: {name}".format(name=component.Name, prefix=prefix))
+ buffer.append(
+ "{prefix}- Component: {name}".format(name=component.Name, prefix=prefix)
+ )
buffer.append("{prefix} Generics:".format(prefix=prefix))
for generic in component.GenericItems:
for line in self.formatGeneric(generic, level + 1):