diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-11-28 00:32:17 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-11-30 23:32:47 +0100 |
commit | 51f0ead16d60c63d1b069f807e3513bba11d8947 (patch) | |
tree | 50094f57aeb7f9562341908864624199f4d7bc4a /pyGHDL/dom/__init__.py | |
parent | 473ed87bb505916e74441f01508c109bf39b30a7 (diff) | |
download | ghdl-51f0ead16d60c63d1b069f807e3513bba11d8947.tar.gz ghdl-51f0ead16d60c63d1b069f807e3513bba11d8947.tar.bz2 ghdl-51f0ead16d60c63d1b069f807e3513bba11d8947.zip |
Converted string formatting to f-strings.
Diffstat (limited to 'pyGHDL/dom/__init__.py')
-rw-r--r-- | pyGHDL/dom/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyGHDL/dom/__init__.py b/pyGHDL/dom/__init__.py index f5d38fa09..e9eb89240 100644 --- a/pyGHDL/dom/__init__.py +++ b/pyGHDL/dom/__init__.py @@ -83,7 +83,7 @@ class Position: return self._column def __str__(self): - return "{file}:{line}:{column}".format(file=self._filename, line=self._line, column=self._column) + return f"{self._filename}:{self._line}:{self._column}" @export |