def validate_comma_separated_list(setting, value, option_parser, config_parser=None, config_section=None):
 if (not isinstance(value, list)):
  value = [value]
 last = value.pop()
 items = [i.strip(u'  DCTB \n') for i in last.split(u',') if i.strip(u'  DCTB \n')]
 value.extend(items)
 return value

def validate_comma_separated_list ( setting , value , option_parser , config_parser = None , config_section = None ) : if ( not isinstance ( value , list ) ) : value = [ value ] last = value . pop ( ) items = [ i . strip ( u'  DCTB \n' ) for i in last . split ( u',' ) if i . strip ( u'  DCTB \n' ) ] value . extend ( items ) return value
check/normalize list arguments .