diff options
author | tgingold <tgingold@users.noreply.github.com> | 2022-12-02 07:31:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 07:31:12 +0100 |
commit | 01660fb74049c5258f0e2868e0a0c5e89446de8d (patch) | |
tree | b2c60ad75d6471b9eaff6cc8c9cc6696a2c234f6 /pyGHDL/dom/Concurrent.py | |
parent | d99076123a58f4d2a7e93706c5adecbd5b99ff8f (diff) | |
parent | 3a1784a57516346e299e57c865399d6538df9e14 (diff) | |
download | ghdl-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/Concurrent.py')
-rw-r--r-- | pyGHDL/dom/Concurrent.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/pyGHDL/dom/Concurrent.py b/pyGHDL/dom/Concurrent.py index f1f545d53..693feba27 100644 --- a/pyGHDL/dom/Concurrent.py +++ b/pyGHDL/dom/Concurrent.py @@ -553,9 +553,7 @@ class CaseGenerateStatement(VHDLModel_CaseGenerateStatement, DOMMixin): else: pos = Position.parse(alternative) raise DOMException( - "Unknown choice range kind '{kind}' in case...generate statement at line {line}.".format( - kind=choiceRangeKind.name, line=pos.Line - ) + f"Unknown choice range kind '{choiceRangeKind.name}' in case...generate statement at line {pos.Line}." ) choice = RangedGenerateChoice(alternative, rng) @@ -574,9 +572,7 @@ class CaseGenerateStatement(VHDLModel_CaseGenerateStatement, DOMMixin): else: pos = Position.parse(alternative) raise DOMException( - "Unknown choice kind '{kind}' in case...generate statement at line {line}.".format( - kind=choiceKind.name, line=pos.Line - ) + f"Unknown choice kind '{choiceKind.name}' in case...generate statement at line {pos.Line}." ) if choices is not None: @@ -634,9 +630,7 @@ class ForGenerateStatement(VHDLModel_ForGenerateStatement, DOMMixin): else: pos = Position.parse(generateNode) raise DOMException( - "Unknown discete range kind '{kind}' in for...generate statement at line {line}.".format( - kind=rangeKind.name, line=pos.Line - ) + f"Unknown discete range kind '{rangeKind.name}' in for...generate statement at line {pos.Line}." ) body = nodes.Get_Generate_Statement_Body(generateNode) |