Returns the parents of this Tag that match the given criteria.
(self, name=None, attrs={}, limit=None, **kwargs)
| 329 | return r |
| 330 | |
| 331 | def findParents(self, name=None, attrs={}, limit=None, **kwargs): |
| 332 | """Returns the parents of this Tag that match the given |
| 333 | criteria.""" |
| 334 | |
| 335 | return self._findAll(name, attrs, None, limit, self.parentGenerator, |
| 336 | **kwargs) |
| 337 | fetchParents = findParents # Compatibility with pre-3.x |
| 338 | |
| 339 | #These methods do the real heavy lifting. |