From cfa8717c4a705254fb214185c4e74de6ee0cfd1c Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 15 Aug 2021 14:13:32 -0400 Subject: 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. --- mesonbuild/dependencies/detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = '' -- cgit v1.1