#NEWLINE# def getSource( self ) : #NEWLINE# #INDENT# if self . stateIsDict : #NEWLINE# #INDENT# stateDict = self . state #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( isinstance ( self . state , Ref ) and isinstance ( self . state . obj , dict ) ) : #NEWLINE# #INDENT# stateDict = self . state . obj #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# stateDict = None #NEWLINE# #UNINDENT# #UNINDENT# if ( stateDict is not None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return ( 'Instance(%r, %s)' % ( self . klass , dictToKW ( stateDict ) ) ) #NEWLINE# #UNINDENT# except NonFormattableDict : #NEWLINE# #INDENT# return ( 'Instance(%r, %s)' % ( self . klass , prettify ( stateDict ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ( 'Instance(%r, %s)' % ( self . klass , prettify ( self . state ) ) )