diff options
| author | tgingold <tgingold@users.noreply.github.com> | 2022-12-02 07:31:12 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-02 07:31:12 +0100 | 
| commit | 01660fb74049c5258f0e2868e0a0c5e89446de8d (patch) | |
| tree | b2c60ad75d6471b9eaff6cc8c9cc6696a2c234f6 /pyGHDL/dom/NonStandard.py | |
| parent | d99076123a58f4d2a7e93706c5adecbd5b99ff8f (diff) | |
| parent | 3a1784a57516346e299e57c865399d6538df9e14 (diff) | |
| download | ghdl-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/NonStandard.py')
| -rw-r--r-- | pyGHDL/dom/NonStandard.py | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/pyGHDL/dom/NonStandard.py b/pyGHDL/dom/NonStandard.py index 4e842f012..c55786d54 100644 --- a/pyGHDL/dom/NonStandard.py +++ b/pyGHDL/dom/NonStandard.py @@ -192,9 +192,7 @@ class Document(VHDLModel_Document):                      else:                          pos = Position.parse(item)                          raise DOMException( -                            "Unknown context item kind '{kind}' in context at line {line}.".format( -                                kind=itemKind.name, line=pos.Line -                            ) +                            f"Unknown context item kind '{itemKind.name}' in context at line {pos.Line}."                          )              if nodeKind == nodes.Iir_Kind.Entity_Declaration: @@ -238,7 +236,7 @@ class Document(VHDLModel_Document):                  self.VerificationModes.append(vmod)              else: -                raise DOMException("Unknown design unit kind '{kind}'.".format(kind=nodeKind.name)) +                raise DOMException(f"Unknown design unit kind '{nodeKind.name}'.")      @property      def LibGHDLProcessingTime(self) -> float:  | 
