diff options
Diffstat (limited to 'pyGHDL/dom/Sequential.py')
-rw-r--r-- | pyGHDL/dom/Sequential.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/pyGHDL/dom/Sequential.py b/pyGHDL/dom/Sequential.py index 35f7b0d4f..0258d3a14 100644 --- a/pyGHDL/dom/Sequential.py +++ b/pyGHDL/dom/Sequential.py @@ -292,9 +292,7 @@ class CaseStatement(VHDLModel_CaseStatement, DOMMixin): else: pos = Position.parse(alternative) raise DOMException( - "Unknown choice range kind '{kind}' in case statement at line {line}.".format( - kind=choiceRangeKind.name, line=pos.Line - ) + f"Unknown choice range kind '{choiceRangeKind.name}' in case statement at line {pos.Line}." ) choice = RangedChoice(alternative, rng) @@ -312,11 +310,7 @@ class CaseStatement(VHDLModel_CaseStatement, DOMMixin): continue else: pos = Position.parse(alternative) - raise DOMException( - "Unknown choice kind '{kind}' in case statement at line {line}.".format( - kind=choiceKind.name, line=pos.Line - ) - ) + raise DOMException(f"Unknown choice kind '{choiceKind.name}' in case statement at line {pos.Line}.") if choices is not None: cases.append(Case.parse(cNode, choices, label)) @@ -371,9 +365,7 @@ class ForLoopStatement(VHDLModel_ForLoopStatement, DOMMixin): else: pos = Position.parse(loopNode) raise DOMException( - "Unknown discete range kind '{kind}' in for...loop statement at line {line}.".format( - kind=rangeKind.name, line=pos.Line - ) + f"Unknown discete range kind '{rangeKind.name}' in for...loop statement at line {pos.Line}." ) statementChain = nodes.Get_Sequential_Statement_Chain(loopNode) |