aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/formatting/prettyprint.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-08-17 00:51:37 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-08-23 16:35:36 +0200
commitad58c297680fe0256eacd12249d2131b00ff9b66 (patch)
treec370c3f04802728a8bdd32d0ca79de50c0acf0ad /pyGHDL/dom/formatting/prettyprint.py
parent597bc9928352ba187bdb0a707332a5f7a0a28e1a (diff)
downloadghdl-ad58c297680fe0256eacd12249d2131b00ff9b66.tar.gz
ghdl-ad58c297680fe0256eacd12249d2131b00ff9b66.tar.bz2
ghdl-ad58c297680fe0256eacd12249d2131b00ff9b66.zip
Fixed pretty printer after model fix.
Diffstat (limited to 'pyGHDL/dom/formatting/prettyprint.py')
-rw-r--r--pyGHDL/dom/formatting/prettyprint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py
index bfb91f3da..9917394da 100644
--- a/pyGHDL/dom/formatting/prettyprint.py
+++ b/pyGHDL/dom/formatting/prettyprint.py
@@ -566,7 +566,7 @@ class PrettyPrint:
)
elif isinstance(item, UseClause):
buffer.append(
- "{prefix}- use {name!s}".format(prefix=prefix, name=item.Item)
+ "{prefix}- use {names}".format(prefix=prefix, names=", ".join([str(n) for n in item.Names]))
)
elif isinstance(item, Package):
buffer.append(