MCPcopy Create free account
hub / github.com/gawel/pyquery / replace_all

Method replace_all

pyquery/pyquery.py:1439–1446  ·  view source on GitHub ↗

replace nodes by expr

(self, expr)

Source from the content-addressed store, hash-verified

1437
1438 @with_camel_case_alias
1439 def replace_all(self, expr):
1440 """replace nodes by expr
1441 """
1442 if self._parent is no_default:
1443 raise ValueError(
1444 'replaceAll can only be used with an object with parent')
1445 self._parent(expr).replace_with(self)
1446 return self
1447
1448 def clone(self):
1449 """return a copy of nodes

Callers

nothing calls this directly

Calls 1

replace_withMethod · 0.80

Tested by

no test coverage detected