MCPcopy Create free account
hub / github.com/csev/py4e / findParents

Method findParents

code/BeautifulSoup.py:316–321  ·  view source on GitHub ↗

Returns the parents of this Tag that match the given criteria.

(self, name=None, attrs={}, limit=None, **kwargs)

Source from the content-addressed store, hash-verified

314 return r
315
316 def findParents(self, name=None, attrs={}, limit=None, **kwargs):
317 """Returns the parents of this Tag that match the given
318 criteria."""
319
320 return self._findAll(name, attrs, None, limit, self.parentGenerator,
321 **kwargs)
322 fetchParents = findParents # Compatibility with pre-3.x
323
324 #These methods do the real heavy lifting.

Callers 1

findParentMethod · 0.95

Calls 1

_findAllMethod · 0.95

Tested by

no test coverage detected