aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/DesignUnit.py
diff options
context:
space:
mode:
authortgingold <tgingold@users.noreply.github.com>2022-12-02 07:31:12 +0100
committerGitHub <noreply@github.com>2022-12-02 07:31:12 +0100
commit01660fb74049c5258f0e2868e0a0c5e89446de8d (patch)
treeb2c60ad75d6471b9eaff6cc8c9cc6696a2c234f6 /pyGHDL/dom/DesignUnit.py
parentd99076123a58f4d2a7e93706c5adecbd5b99ff8f (diff)
parent3a1784a57516346e299e57c865399d6538df9e14 (diff)
downloadghdl-01660fb74049c5258f0e2868e0a0c5e89446de8d.tar.gz
ghdl-01660fb74049c5258f0e2868e0a0c5e89446de8d.tar.bz2
ghdl-01660fb74049c5258f0e2868e0a0c5e89446de8d.zip
Merge pull request #2255 from Paebbels/paebbels/f-strings
f-strings
Diffstat (limited to 'pyGHDL/dom/DesignUnit.py')
-rw-r--r--pyGHDL/dom/DesignUnit.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/pyGHDL/dom/DesignUnit.py b/pyGHDL/dom/DesignUnit.py
index 3c0d2ab0c..f45cb8340 100644
--- a/pyGHDL/dom/DesignUnit.py
+++ b/pyGHDL/dom/DesignUnit.py
@@ -314,11 +314,7 @@ class Context(VHDLModel_Context, DOMMixin):
items.append(UseClause.parse(item))
else:
pos = Position.parse(item)
- raise DOMException(
- "Unknown context item kind '{kind}' in context at line {line}.".format(
- kind=kind.name, line=pos.Line
- )
- )
+ raise DOMException(f"Unknown context item kind '{kind.name}' in context at line {pos.Line}.")
return cls(contextNode, name, items)