aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-08-15 14:13:32 -0400
committerEli Schwartz <eschwartz@archlinux.org>2021-10-04 16:29:30 -0400
commitcfa8717c4a705254fb214185c4e74de6ee0cfd1c (patch)
tree6c1a8b1214c91ad389d92b12476c7db30464b0f3
parente33ba28ec41a08c857b72a633d1e1a5b76cbb962 (diff)
downloadmeson-cfa8717c4a705254fb214185c4e74de6ee0cfd1c.zip
meson-cfa8717c4a705254fb214185c4e74de6ee0cfd1c.tar.gz
meson-cfa8717c4a705254fb214185c4e74de6ee0cfd1c.tar.bz2
coding style: don't format an empty string with another string
'{}'.format('foo') for any given value of 'foo' (in this case, a function returning a string), can always just be 'foo' directly, which is a lot more readable.
-rw-r--r--mesonbuild/dependencies/detect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/detect.py b/mesonbuild/dependencies/detect.py
index ede76c9..dbb43ab 100644
--- a/mesonbuild/dependencies/detect.py
+++ b/mesonbuild/dependencies/detect.py
@@ -143,7 +143,7 @@ def find_external_dependency(name: str, env: 'Environment', kwargs: T.Dict[str,
# otherwise, the dependency could not be found
tried_methods = [d.log_tried() for d in pkgdep if d.log_tried()]
if tried_methods:
- tried = '{}'.format(mlog.format_list(tried_methods))
+ tried = mlog.format_list(tried_methods)
else:
tried = ''