dependencies: log unuspported methods correctly

This basically boils down to using map() and expecting a list, but map
returns an iterator. The better solution is to use a list comprehension
anyway, so do that.
pull/2512/head
Dylan Baker 8 years ago
parent 22fed0b424
commit aee038173e
  1. 2
      mesonbuild/dependencies/base.py

@ -82,7 +82,7 @@ class Dependency:
raise DependencyException(
'Unsupported detection method: {}, allowed methods are {}'.format(
method.value,
mlog.format_list(map(lambda x: x.value, [DependencyMethods.AUTO] + self.get_methods()))))
mlog.format_list([x.value for x in [DependencyMethods.AUTO] + self.get_methods()])))
def __repr__(self):
s = '<{0} {1}: {2}>'

Loading…
Cancel
Save