From e75211d321d7416b8a4871d3015a7915fb86b53b Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Tue, 23 Apr 2019 14:58:18 +0200 Subject: Fix builtin variable names --- mesonbuild/mlog.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mesonbuild/mlog.py') 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 '' -- cgit v1.1