diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-11-28 00:32:17 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-11-30 23:32:47 +0100 |
commit | 51f0ead16d60c63d1b069f807e3513bba11d8947 (patch) | |
tree | 50094f57aeb7f9562341908864624199f4d7bc4a /pyGHDL/dom/NonStandard.py | |
parent | 473ed87bb505916e74441f01508c109bf39b30a7 (diff) | |
download | ghdl-51f0ead16d60c63d1b069f807e3513bba11d8947.tar.gz ghdl-51f0ead16d60c63d1b069f807e3513bba11d8947.tar.bz2 ghdl-51f0ead16d60c63d1b069f807e3513bba11d8947.zip |
Converted string formatting to f-strings.
Diffstat (limited to 'pyGHDL/dom/NonStandard.py')
-rw-r--r-- | pyGHDL/dom/NonStandard.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pyGHDL/dom/NonStandard.py b/pyGHDL/dom/NonStandard.py index 4e842f012..e6af8284a 100644 --- a/pyGHDL/dom/NonStandard.py +++ b/pyGHDL/dom/NonStandard.py @@ -191,11 +191,7 @@ class Document(VHDLModel_Document): contextItems.append(ContextReference.parse(item)) else: pos = Position.parse(item) - raise DOMException( - "Unknown context item kind '{kind}' in context at line {line}.".format( - kind=itemKind.name, line=pos.Line - ) - ) + raise DOMException(f"Unknown context item kind '{itemKind.name}' in context at line {pos.Line}.") if nodeKind == nodes.Iir_Kind.Entity_Declaration: entity = Entity.parse(libraryUnit, contextItems) @@ -238,7 +234,7 @@ class Document(VHDLModel_Document): self.VerificationModes.append(vmod) else: - raise DOMException("Unknown design unit kind '{kind}'.".format(kind=nodeKind.name)) + raise DOMException(f"Unknown design unit kind '{nodeKind.name}'.") @property def LibGHDLProcessingTime(self) -> float: |