#NEWLINE# def getObjectSpecificationFallback( ob ) : #NEWLINE# #INDENT# provides = getattr ( ob , '__provides__' , None ) #NEWLINE# if ( provides is not None ) : #NEWLINE# #INDENT# if isinstance ( provides , SpecificationBase ) : #NEWLINE# #INDENT# return provides #NEWLINE# #UNINDENT# #UNINDENT# try : #NEWLINE# #INDENT# cls = ob . __class__ #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# return _empty #NEWLINE# #UNINDENT# return implementedBy ( cls )