def lsb_release():
    """Return /etc/lsb-release in a dict"""
    d = {}
    with open('/etc/lsb-release', 'r') as lsb:
        for l in lsb:
            k, v = l.split('=')
            d[k.strip()] = v.strip()
    return d
def lsb_release ( ) : d = { } with open ( '/etc/lsb-release' , 'r' ) as lsb : for l in lsb : k , v = l . split ( '=' ) d [ k . strip ( ) ] = v . strip ( ) return d
Return /etc/lsb-release in a dict