-def format_arguments(string):
- args = re.split('\s*\n\s*', string)
- if args[0] == '':
- args = args[1:]
- if len(args) > 0 and args[-1] == '':
- args = args[:-1]
- return ", ".join(args)
-
-def filter_isnot(list, flag):
- return filter(lambda x: not hasattr(x, flag), list)
-
-def filter_notset(list, flag):
- return filter(lambda x: not getattr(x,flag), list)
-
-def filter_hasnot(list, flag):
- return filter(lambda x: flag not in x, list)
-