diff options
| author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-11-28 00:39:29 +0100 | 
|---|---|---|
| committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-11-30 23:32:47 +0100 | 
| commit | 30a8c57439520e6f043b5aaa5fde9ea5ca38e490 (patch) | |
| tree | cafbf499a71f14a25763943e74c955db880e4e4b /pyGHDL/dom/Attribute.py | |
| parent | e6cc3aba4fec28d23df9fe974d92706d867c1668 (diff) | |
| download | ghdl-30a8c57439520e6f043b5aaa5fde9ea5ca38e490.tar.gz ghdl-30a8c57439520e6f043b5aaa5fde9ea5ca38e490.tar.bz2 ghdl-30a8c57439520e6f043b5aaa5fde9ea5ca38e490.zip | |
Formatted code with black.
Diffstat (limited to 'pyGHDL/dom/Attribute.py')
| -rw-r--r-- | pyGHDL/dom/Attribute.py | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/pyGHDL/dom/Attribute.py b/pyGHDL/dom/Attribute.py index 808f0a6a3..86be400ac 100644 --- a/pyGHDL/dom/Attribute.py +++ b/pyGHDL/dom/Attribute.py @@ -121,14 +121,18 @@ class AttributeSpecification(VHDLModel_AttributeSpecification, DOMMixin):                  print("[NOT IMPLEMENTED] Signature name in attribute specifications.")              else:                  position = Position.parse(name) -                raise DOMException(f"Unknown name kind '{nameKind.name}' in attribute specification '{attributeNode}' at {position.Filename}:{position.Line}:{position.Column}.") +                raise DOMException( +                    f"Unknown name kind '{nameKind.name}' in attribute specification '{attributeNode}' at {position.Filename}:{position.Line}:{position.Column}." +                )          entityClassToken = nodes.Get_Entity_Class(attributeNode)          try:              entityClass = _TOKEN_TRANSLATION[entityClassToken]          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}.") +            raise DOMException( +                f"Unknown token '{entityClassToken.name}' in attribute specification for entity class '{attributeNode}' at {position.Filename}:{position.Line}:{position.Column}." +            )          expression = GetExpressionFromNode(nodes.Get_Expression(attributeNode)) | 
