(self, name=None, attrs={}, **kwargs)
return r
Returns the closest parent of this Tag that matches the given
        criteria.
Returns the closest parent of this Tag that matches the given
        criteria.
Returns the closest parent of this Tag that matches the given criteria .
def find_parent(self, name=None, attrs={}, **kwargs):
        """Returns the closest parent of this Tag that matches the given
        criteria."""
        # NOTE: We can't use _find_one because findParents takes a different
        # set of arguments.
        r = None
        l = self.find_parents(name, attrs, 1, **kwargs)
        if l:
            r = l[0]
        return r
def find_parent ( self , name = None , attrs = { } , * * kwargs ) : # NOTE: We can't use _find_one because findParents takes a different # set of arguments. r = None l = self . find_parents ( name , attrs , 1 , * * kwargs ) if l : r = l [ 0 ] return r