Commit 789c15a3 authored by yb9976's avatar yb9976
Browse files

Always use a list for python3 compatibility.

parent d5b05dd6
......@@ -16,8 +16,8 @@ def format_arguments(string, voidwhenempty = False):
return "void"
return joined
def filter_hasnot(list, flag):
return filter(lambda x: not hasattr(x, flag) or not getattr(x, flag), list)
def filter_hasnot(plist, flag):
return list(filter(lambda x: not hasattr(x, flag) or not getattr(x, flag), plist))
def filter_has(list, flag):
return filter(lambda x: hasattr(x, flag) and getattr(x, flag), list)
def filter_has(plist, flag):
return list(filter(lambda x: hasattr(x, flag) and getattr(x, flag), plist))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment