aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/minstall.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-09-22 09:35:17 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-09-22 17:57:03 -0700
commitb034f8cf610d7c3d71fa536f2ec1669e7f2f3c7c (patch)
tree9da089d2553469adfbcccad8758d2d39d26bcf91 /mesonbuild/minstall.py
parent94ea9d97bece30f209665032850ad0920b461170 (diff)
downloadmeson-b034f8cf610d7c3d71fa536f2ec1669e7f2f3c7c.zip
meson-b034f8cf610d7c3d71fa536f2ec1669e7f2f3c7c.tar.gz
meson-b034f8cf610d7c3d71fa536f2ec1669e7f2f3c7c.tar.bz2
pylint: Turn on warnings for incorrect number of args
This catches some very real errors. The one in scalapack is pretty silly actually, it's failing to figure out that the exploded list is at least two arguments. However, the code is actually clearer by not using a list and exploding it, so I've done that and pylint is happy too.
Diffstat (limited to 'mesonbuild/minstall.py')
-rw-r--r--mesonbuild/minstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py
index 7a56275..0eaa54f 100644
--- a/mesonbuild/minstall.py
+++ b/mesonbuild/minstall.py
@@ -483,7 +483,7 @@ class Installer:
set_mode(outname, install_mode, d.install_umask)
if should_strip and d.strip_bin is not None:
if fname.endswith('.jar'):
- self.log('Not stripping jar target:', os.path.basename(fname))
+ self.log('Not stripping jar target: {}'.format(os.path.basename(fname)))
continue
self.log('Stripping target {!r} using {}.'.format(fname, d.strip_bin[0]))
ps, stdo, stde = Popen_safe(d.strip_bin + [outname])