diff options
Diffstat (limited to 'pyGHDL/dom/DesignUnit.py')
-rw-r--r-- | pyGHDL/dom/DesignUnit.py | 6 |
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) |