def _list_from_csv(csv_string, caster=None):
 if (caster is None):
  return [x for x in csv_string.split(',') if x]
 else:
  return [caster(x) for x in csv_string.split(',') if x]

def _list_from_csv ( csv_string , caster = None ) : if ( caster is None ) : return [ x for x in csv_string . split ( ',' ) if x ] else : return [ caster ( x ) for x in csv_string . split ( ',' ) if x ]
transforms the given comma-separated string into a list .