MCPcopy Index your code
hub / github.com/ronreiter/interactive-tutorials / remove

Method remove

suds/sax/element.py:355–367  ·  view source on GitHub ↗

Remove the specified child element or attribute. @param child: A child to remove. @type child: L{Element}|L{Attribute} @return: The detached I{child} when I{child} is an element, else None. @rtype: L{Element}|None

(self, child)

Source from the content-addressed store, hash-verified

353 return self
354
355 def remove(self, child):
356 """
357 Remove the specified child element or attribute.
358 @param child: A child to remove.
359 @type child: L{Element}|L{Attribute}
360 @return: The detached I{child} when I{child} is an element, else None.
361 @rtype: L{Element}|None
362 """
363 if isinstance(child, Element):
364 return child.detach()
365 if isinstance(child, Attribute):
366 self.attributes.remove(child)
367 return None
368
369 def replaceChild(self, child, content):
370 """

Callers 15

replaceChildMethod · 0.95
init_tutorialsFunction · 0.80
__delitem__Method · 0.80
popMethod · 0.80
popitemMethod · 0.80
__processElementTextMethod · 0.80
runMethod · 0.80
jquery.jsFile · 0.80
bootstrap.jsFile · 0.80
bootstrap.min.jsFile · 0.80
bootbox.min.jsFile · 0.80
maximizeDockFunction · 0.80

Calls 1

detachMethod · 0.80

Tested by

no test coverage detected