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

Method lastChild

markdown/blockprocessors.py:32–37  ·  view source on GitHub ↗

Return the last child of an etree element.

(self, parent)

Source from the content-addressed store, hash-verified

30 self.parser = parser
31
32 def lastChild(self, parent):
33 """ Return the last child of an etree element. """
34 if len(parent):
35 return parent[-1]
36 else:
37 return None
38
39 def detab(self, text):
40 """ Remove a tab from the front of each line of the given text. """

Callers 6

get_levelMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected