aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mlog.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-04-23 14:58:18 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-04-29 12:17:40 +0200
commite75211d321d7416b8a4871d3015a7915fb86b53b (patch)
treee6460b95e475fe7fabbb47ee318160ecb6228357 /mesonbuild/mlog.py
parentbf98ffca9ee67a6a942b9abf96b536692370cf03 (diff)
downloadmeson-e75211d321d7416b8a4871d3015a7915fb86b53b.zip
meson-e75211d321d7416b8a4871d3015a7915fb86b53b.tar.gz
meson-e75211d321d7416b8a4871d3015a7915fb86b53b.tar.bz2
Fix builtin variable names
Diffstat (limited to 'mesonbuild/mlog.py')
-rw-r--r--mesonbuild/mlog.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mesonbuild/mlog.py b/mesonbuild/mlog.py
index e8ee6c8..2121282 100644
--- a/mesonbuild/mlog.py
+++ b/mesonbuild/mlog.py
@@ -234,14 +234,14 @@ def exception(e: Exception, prefix: AnsiDecorator = red('ERROR:')) -> None:
# Format a list for logging purposes as a string. It separates
# all but the last item with commas, and the last with 'and'.
-def format_list(list_: typing.List[str]) -> str:
- l = len(list_)
+def format_list(input_list: typing.List[str]) -> str:
+ l = len(input_list)
if l > 2:
- return ' and '.join([', '.join(list_[:-1]), list_[-1]])
+ return ' and '.join([', '.join(input_list[:-1]), input_list[-1]])
elif l == 2:
- return ' and '.join(list_)
+ return ' and '.join(input_list)
elif l == 1:
- return list_[0]
+ return input_list[0]
else:
return ''