aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/Sequential.py
diff options
context:
space:
mode:
authortgingold <tgingold@users.noreply.github.com>2022-12-02 07:31:12 +0100
committerGitHub <noreply@github.com>2022-12-02 07:31:12 +0100
commit01660fb74049c5258f0e2868e0a0c5e89446de8d (patch)
treeb2c60ad75d6471b9eaff6cc8c9cc6696a2c234f6 /pyGHDL/dom/Sequential.py
parentd99076123a58f4d2a7e93706c5adecbd5b99ff8f (diff)
parent3a1784a57516346e299e57c865399d6538df9e14 (diff)
downloadghdl-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/Sequential.py')
-rw-r--r--pyGHDL/dom/Sequential.py14
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)