#NEWLINE# def HasAncestor( self , s ) : #NEWLINE# #INDENT# ' Returns a NEW selector that requires the current s-object be valid,\n    and the `s` s-object to be valid on one of its ancestors.\n\n    See the HasAncestor function in the module for more help.' #NEWLINE# return S ( _selector . HasAncestor ( self . selector , s . selector ) )