Return the last child of an etree element.
(self, parent)
| 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. """ |