(self)
return self._parse_lsb_release_content(content)
Get the information items from the lsb_release command output.

        Returns:
            A dictionary containing all information items.
Get the information items from the lsb_release command output.
Get the information items from the lsb_release command output .
def _lsb_release_info(self):
        """
        Get the information items from the lsb_release command output.

        Returns:
            A dictionary containing all information items.
        """
        if not self.include_lsb:
            return {}
        with open(os.devnull, 'w') as devnull:
            try:
                cmd = ('lsb_release', '-a')
                stdout = subprocess.check_output(cmd, stderr=devnull)
            except OSError:  # Command not found
                return {}
        content = stdout.decode(sys.getfilesystemencoding()).splitlines()
        return self._parse_lsb_release_content(content)
def _lsb_release_info ( self ) : if not self . include_lsb : return { } with open ( os . devnull , 'w' ) as devnull : try : cmd = ( 'lsb_release' , '-a' ) stdout = subprocess . check_output ( cmd , stderr = devnull ) except OSError : # Command not found return { } content = stdout . decode ( sys . getfilesystemencoding ( ) ) . splitlines ( ) return self . _parse_lsb_release_content ( content )