def parse_vals(cfg,section,option):
try:<EOL><INDENT>vals = cfg.get(section,option)<EOL><DEDENT>except ConfigParser.NoSectionError as err:<EOL><INDENT>if section != '<STR_LIT>':<EOL><INDENT>vals = cfg.get('<STR_LIT>',option)<EOL><DEDENT>else:<EOL><INDENT>raise err<EOL><DEDENT><DEDENT>vals = vals.split('<STR_LIT:#>')[<NUM_LIT:0>]<EOL>vals = vals.strip()<EOL>vals = vals.split('<STR_LIT:U+002C>')<EOL>vals = [v.strip() for v in vals]<EOL>vals = [v for v in vals if len(v)]<EOL>return vals<EOL>
parse comma separated values in debian control file style from .cfg