#NEWLINE# @ staticmethod #NEWLINE# def _parse_lsb_release_content( lines ) : #NEWLINE# #INDENT# '\n        Parse the output of the lsb_release command.\n\n        Parameters:\n\n        * lines: Iterable through the lines of the lsb_release output.\n                 Each line must be a unicode string or a UTF-8 encoded byte\n                 string.\n\n        Returns:\n            A dictionary containing all information items.\n        ' #NEWLINE# props = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for line in lines : #NEWLINE# #INDENT# if isinstance ( line , six . binary_type ) : #NEWLINE# #INDENT# line = line . decode ( 'utf-8' ) #NEWLINE# #UNINDENT# kv = line . strip ( '\n' ) . split ( ':' , 1 ) #NEWLINE# if ( len ( kv ) != 2 ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ( k , v ) = kv #NEWLINE# props . update ( { #NEWLINE# #INDENT# k . replace ( ' ' , '_' ) . lower ( ) : v . strip ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return props