def _lsb_release_info(self):
        cmd = 'lsb_release -a'
        p = subprocess.Popen(
            cmd,
            shell=True,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE)
        out, err = p.communicate()
        rc = p.returncode
        if rc == 0:
            content = out.decode('ascii').splitlines()
            return self._parse_lsb_release_content(content)
        elif rc == 127:  # Command not found
            return {}
        else:
            if sys.version_info[0:2] >= (2, 7):
                raise subprocess.CalledProcessError(rc, cmd, err)
            else:
                raise subprocess.CalledProcessError(rc, cmd)
Get the information items from the lsb_release command output.
dataset/ETHPy150Open nir0s/distro/distro.py/LinuxDistribution._lsb_release_info