need to list-ify OS matches

This commit is contained in:
Matthias Urlichs committed 2019-01-28 14:14:23 +01:00
1 parent 0da47858fa
commit 8af45e2f21
1 file changed
+2 -2
+2 -2
View File
@@ -69,8 +69,8 @@ def is_os_compatible(compatibility_entries, current_os=None):
if current_os is None:
current_os = get_os()
negative_entries = map(lambda x: x[1:], filter(lambda x: x.startswith("!"), compatibility_entries))
positive_entries = filter(lambda x: not x.startswith("!"), compatibility_entries)
negative_entries = list(map(lambda x: x[1:], filter(lambda x: x.startswith("!"), compatibility_entries)))
positive_entries = list(filter(lambda x: not x.startswith("!"), compatibility_entries))
negative_match = False
if negative_entries: