#NEWLINE# @ staticmethod #NEWLINE# def _parse_distro_release_content( line ) : #NEWLINE# #INDENT# '\n        Parse a line from a distro release file.\n\n        Parameters:\n        * line: Line from the distro release file. Must be a unicode string\n                or a UTF-8 encoded byte string.\n\n        Returns:\n            A dictionary containing all information items.\n        ' #NEWLINE# if isinstance ( line , six . binary_type ) : #NEWLINE# #INDENT# line = line . decode ( 'utf-8' ) #NEWLINE# #UNINDENT# m = _DISTRO_RELEASE_CONTENT_REVERSED_PATTERN . match ( line . strip ( ) [ : : ( - 1 ) ] ) #NEWLINE# distro_info = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if m : #NEWLINE# #INDENT# distro_info [ 'name' ] = m . group ( 3 ) [ : : ( - 1 ) ] #NEWLINE# if m . group ( 2 ) : #NEWLINE# #INDENT# distro_info [ 'version_id' ] = m . group ( 2 ) [ : : ( - 1 ) ] #NEWLINE# #UNINDENT# if m . group ( 1 ) : #NEWLINE# #INDENT# distro_info [ 'codename' ] = m . group ( 1 ) [ : : ( - 1 ) ] #NEWLINE# #UNINDENT# #UNINDENT# return line