#NEWLINE# def _format_shared( obj , indent ) : #NEWLINE# #INDENT# 'Format the common shared attributes in the same manner.' #NEWLINE# if ( obj is None ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# lines = [ ] #NEWLINE# for attr_name in ( 'uuid' , 'state' ) : #NEWLINE# #INDENT# if ( not hasattr ( obj , obj ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# lines . append ( ( '%s- %s = %s' % ( ( ' ' * indent ) , attr_name , getattr ( obj , attr_name ) ) ) ) #NEWLINE# #UNINDENT# return lines