#NEWLINE# def _xfs_info_get_kv( serialized ) : #NEWLINE# #INDENT# '\n    Parse one line of the XFS info output.\n    ' #NEWLINE# if serialized . startswith ( '=' ) : #NEWLINE# #INDENT# serialized = serialized [ 1 : ] . strip ( ) #NEWLINE# #UNINDENT# serialized = serialized . replace ( ' = ' , '=*** ' ) . replace ( ' =' , '=' ) #NEWLINE# opt = [ ] #NEWLINE# for tkn in serialized . split ( ' ' ) : #NEWLINE# #INDENT# if ( ( not opt ) or ( '=' in tkn ) ) : #NEWLINE# #INDENT# opt . append ( tkn ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# opt [ ( len ( tkn ) - 1 ) ] = ( ( opt [ ( len ( opt ) - 1 ) ] + ' ' ) + tkn ) #NEWLINE# #UNINDENT# #UNINDENT# return [ tuple ( items . split ( '=' ) ) for items in opt ]