(cfg, section, option)
return vals[0]
extract a single value from .cfg
extract a single value from .cfg
extract a single value from . cfg
def parse_val(cfg, section, option):
    """extract a single value from .cfg"""
    vals = parse_vals(cfg, section, option)
    if len(vals) == 0:
        return ''
    else:
        assert len(vals) == 1, (section, option, vals, type(vals))
    return vals[0]
def parse_val ( cfg , section , option ) : vals = parse_vals ( cfg , section , option ) if len ( vals ) == 0 : return '' else : assert len ( vals ) == 1 , ( section , option , vals , type ( vals ) ) return vals [ 0 ]