(self, separator=u"")
| 591 | string = property(getString, setString) |
| 592 | |
| 593 | def getText(self, separator=u""): |
| 594 | if not len(self.contents): |
| 595 | return u"" |
| 596 | stopNode = self._lastRecursiveChild().next |
| 597 | strings = [] |
| 598 | current = self.contents[0] |
| 599 | while current and current is not stopNode: |
| 600 | if isinstance(current, NavigableString): |
| 601 | strings.append(current.strip()) |
| 602 | current = current.next |
| 603 | return separator.join(strings) |
| 604 | |
| 605 | text = property(getText) |
| 606 |
nothing calls this directly
no test coverage detected