diff options
Diffstat (limited to 'pyGHDL/dom/Sequential.py')
-rw-r--r-- | pyGHDL/dom/Sequential.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pyGHDL/dom/Sequential.py b/pyGHDL/dom/Sequential.py index 3e9ebaf48..0258d3a14 100644 --- a/pyGHDL/dom/Sequential.py +++ b/pyGHDL/dom/Sequential.py @@ -291,7 +291,9 @@ class CaseStatement(VHDLModel_CaseStatement, DOMMixin): rng = GetNameFromNode(choiceRange) else: pos = Position.parse(alternative) - raise DOMException(f"Unknown choice range kind '{choiceRangeKind.name}' in case statement at line {pos.Line}.") + raise DOMException( + f"Unknown choice range kind '{choiceRangeKind.name}' in case statement at line {pos.Line}." + ) choice = RangedChoice(alternative, rng) if sameAlternative: @@ -362,7 +364,9 @@ class ForLoopStatement(VHDLModel_ForLoopStatement, DOMMixin): rng = GetNameFromNode(discreteRange) else: pos = Position.parse(loopNode) - raise DOMException(f"Unknown discete range kind '{rangeKind.name}' in for...loop statement at line {pos.Line}.") + raise DOMException( + f"Unknown discete range kind '{rangeKind.name}' in for...loop statement at line {pos.Line}." + ) statementChain = nodes.Get_Sequential_Statement_Chain(loopNode) statements = GetSequentialStatementsFromChainedNodes(statementChain, "for", label) |