aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mlog.py
diff options
context:
space:
mode:
authorMichael <michaelbrockus@gmail.com>2020-04-18 23:11:16 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2020-04-21 00:16:21 +0300
commitc53b6379597be5961b4e69e7f187608452874e4c (patch)
treeeade9c7e52c6940a236f595a728a638ad008f9cf /mesonbuild/mlog.py
parent182f40d25add336531b4127e410af8bcbe067575 (diff)
downloadmeson-c53b6379597be5961b4e69e7f187608452874e4c.zip
meson-c53b6379597be5961b4e69e7f187608452874e4c.tar.gz
meson-c53b6379597be5961b4e69e7f187608452874e4c.tar.bz2
switch python2 %s for python3 .format
Diffstat (limited to 'mesonbuild/mlog.py')
-rw-r--r--mesonbuild/mlog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mlog.py b/mesonbuild/mlog.py
index a5fb320..8cbd248 100644
--- a/mesonbuild/mlog.py
+++ b/mesonbuild/mlog.py
@@ -302,7 +302,7 @@ def exception(e: Exception, prefix: T.Optional[AnsiDecorator] = None) -> None:
# Mypy doesn't follow hasattr, and it's pretty easy to visually inspect
# that this is correct, so we'll just ignore it.
path = get_relative_path(Path(e.file), Path(os.getcwd())) # type: ignore
- args.append('%s:%d:%d:' % (path, e.lineno, e.colno)) # type: ignore
+ args.append('{}:{}:{}:'.format(path, e.lineno, e.colno)) # type: ignore
if prefix:
args.append(prefix)
args.append(str(e))