diff options
Diffstat (limited to 'pyGHDL/dom/Concurrent.py')
-rw-r--r-- | pyGHDL/dom/Concurrent.py | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/pyGHDL/dom/Concurrent.py b/pyGHDL/dom/Concurrent.py index f1f545d53..754f58f14 100644 --- a/pyGHDL/dom/Concurrent.py +++ b/pyGHDL/dom/Concurrent.py @@ -552,11 +552,7 @@ class CaseGenerateStatement(VHDLModel_CaseGenerateStatement, DOMMixin): rng = GetNameFromNode(choiceRange) 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 - ) - ) + raise DOMException(f"Unknown choice range kind '{choiceRangeKind.name}' in case...generate statement at line {pos.Line}.") choice = RangedGenerateChoice(alternative, rng) if sameAlternative: @@ -573,11 +569,7 @@ class CaseGenerateStatement(VHDLModel_CaseGenerateStatement, DOMMixin): continue 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 - ) - ) + raise DOMException(f"Unknown choice kind '{choiceKind.name}' in case...generate statement at line {pos.Line}.") if choices is not None: cases.append(GenerateCase.parse(caseNode, choices)) @@ -633,11 +625,7 @@ class ForGenerateStatement(VHDLModel_ForGenerateStatement, DOMMixin): rng = GetNameFromNode(discreteRange) 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 - ) - ) + raise DOMException(f"Unknown discete range kind '{rangeKind.name}' in for...generate statement at line {pos.Line}.") body = nodes.Get_Generate_Statement_Body(generateNode) declarationChain = nodes.Get_Declaration_Chain(body) |