From 08a338e9568c333929c6863be60580619e3e77ff Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 21 Jun 2022 21:52:50 +0200 Subject: Changed '"...".format(...)' to f-strings. (cherry picked from commit 86a5638332b2573523b1f9768cf321a41b16f21c) --- pyGHDL/dom/Attribute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyGHDL/dom/Attribute.py') diff --git a/pyGHDL/dom/Attribute.py b/pyGHDL/dom/Attribute.py index ccd3ecf47..e43ea173e 100644 --- a/pyGHDL/dom/Attribute.py +++ b/pyGHDL/dom/Attribute.py @@ -125,7 +125,7 @@ class AttributeSpecification(VHDLModel_AttributeSpecification, DOMMixin): else: position = Position.parse(name) raise DOMException( - f"Unknown name kind '{nameKind.name}' in attribute specification '{attributeNode}' at {position.Filename}:{position.Line}:{position.Column}." + f"Unknown name kind '{nameKind.name}' in attribute specification '{attributeNode}' at {position}." ) entityClassToken = nodes.Get_Entity_Class(attributeNode) @@ -134,7 +134,7 @@ class AttributeSpecification(VHDLModel_AttributeSpecification, DOMMixin): except KeyError: position = Position.parse(attributeNode) raise DOMException( - f"Unknown token '{entityClassToken.name}' in attribute specification for entity class '{attributeNode}' at {position.Filename}:{position.Line}:{position.Column}." + f"Unknown token '{entityClassToken.name}' in attribute specification for entity class '{attributeNode}' at {position}." ) expression = GetExpressionFromNode(nodes.Get_Expression(attributeNode)) -- cgit v1.2.3