diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-09-14 02:18:26 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-10-04 16:29:30 -0400 |
commit | b2ddda701387751d84013aaf85e02669672b2a14 (patch) | |
tree | 1df91419370e4a9c975b9e9eb8d4cfc527024c27 /mesonbuild | |
parent | cfa8717c4a705254fb214185c4e74de6ee0cfd1c (diff) | |
download | meson-b2ddda701387751d84013aaf85e02669672b2a14.zip meson-b2ddda701387751d84013aaf85e02669672b2a14.tar.gz meson-b2ddda701387751d84013aaf85e02669672b2a14.tar.bz2 |
fix incorrect porting from % formatting to .format method
(var,) is the correct way to pass values to a percent formatted string,
but not to .format so we would end up printing something like:
unexpected input at line (4,)
Upgrade to an f-string and insert the correct value correctly.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/mtest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index f877ec8..36c4da9 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -430,7 +430,7 @@ class TAPParser: if not line: return - yield self.Error('unexpected input at line {}'.format((self.lineno,))) + yield self.Error(f'unexpected input at line {self.lineno}') else: # end of file if self.state == self._YAML: |