#NEWLINE# def _comparator_factory( self , mapper ) : #NEWLINE# #INDENT# comparator_callable = None #NEWLINE# for m in self . parent . iterate_to_root ( ) : #NEWLINE# #INDENT# p = m . _props [ comparator_callable . key ] #NEWLINE# if ( not isinstance ( p , ConcreteInheritedProperty ) ) : #NEWLINE# #INDENT# comparator_callable = p . comparator_factory #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# return comparator_callable