(lines)
return props
Parse the output of the lsb_release command.

        Parameters:

        * lines: Iterable through the lines of the lsb_release output.
                 Each line must be a unicode string or a UTF-8 encoded byte
                 string.

        Returns:
            A dictionary containing all information items.
Parse the output of the lsb_release command.
Parse the output of the lsb_release command .
def _parse_lsb_release_content(lines):
        """
        Parse the output of the lsb_release command.

        Parameters:

        * lines: Iterable through the lines of the lsb_release output.
                 Each line must be a unicode string or a UTF-8 encoded byte
                 string.

        Returns:
            A dictionary containing all information items.
        """
        props = {}
        for line in lines:
            kv = line.strip('\n').split(':', 1)
            if len(kv) != 2:
                # Ignore lines without colon.
                continue
            k, v = kv
            props.update({k.replace(' ', '_').lower(): v.strip()})
        return props
def _parse_lsb_release_content ( lines ) : props = { } for line in lines : kv = line . strip ( '\n' ) . split ( ':' , 1 ) if len ( kv ) != 2 : # Ignore lines without colon. continue k , v = kv props . update ( { k . replace ( ' ' , '_' ) . lower ( ) : v . strip ( ) } ) return props