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.
@@ -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}>'
