diff options
author | Simon Warta <[email protected]> | 2017-04-30 00:16:16 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-04-30 00:16:16 +0200 |
commit | 7873dd06cdab8b10e03a94bf197f02c4a28428f1 (patch) | |
tree | 743ca4f8369f56969cca2d5e74167b01de1fe92c /configure.py | |
parent | 29cc6bebe132a34f882d450b35a69bf71bb3e27b (diff) |
Simplify implementation of makefile_list
this makes it compatible with zero length collections
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.py b/configure.py index 453db7fc4..08f1bdc83 100755 --- a/configure.py +++ b/configure.py @@ -1364,8 +1364,8 @@ def process_template(template_file, variables): raise InternalError('Exception %s in template %s' % (e, template_file)) def makefile_list(items): - items = list(items) # force evaluation so we can slice it - return (' '*16).join([item + ' \\\n' for item in items[:-1]] + [items[-1]]) + separator = " \\\n" + 16*" " + return separator.join(items) def gen_bakefile(build_config, options, external_libs): |