aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/Attribute.py
diff options
context:
space:
mode:
authortgingold <tgingold@users.noreply.github.com>2022-12-24 11:06:07 +0100
committerGitHub <noreply@github.com>2022-12-24 11:06:07 +0100
commit5bca94f83b0d44297f943ff0d0237ec216fc29e9 (patch)
tree1b045b05c55baeb2676cdbb0dcb00393c24557db /pyGHDL/dom/Attribute.py
parent26bb3c572eaffafafd8de8ef09b8acc34f91656f (diff)
parent08a338e9568c333929c6863be60580619e3e77ff (diff)
downloadghdl-5bca94f83b0d44297f943ff0d0237ec216fc29e9.tar.gz
ghdl-5bca94f83b0d44297f943ff0d0237ec216fc29e9.tar.bz2
ghdl-5bca94f83b0d44297f943ff0d0237ec216fc29e9.zip
Merge pull request #2281 from Paebbels/paebbels/encoding
Configurable encoding for pyGHDL
Diffstat (limited to 'pyGHDL/dom/Attribute.py')
-rw-r--r--pyGHDL/dom/Attribute.py4
1 files changed, 2 insertions, 2 deletions
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))