- if exclude_type:
- if isinstance (v,exclude_type): return True
- if isinstance (v,list) and v and isinstance (v[0],exclude_type) : return True
+ if exclude_types:
+ for exclude_type in exclude_types:
+ if isinstance (v,exclude_type): return True
+ if isinstance (v,list) and v and isinstance (v[0],exclude_type) : return True