(self, tag)
| 667 | self._data.append(text) |
| 668 | |
| 669 | def end(self, tag): |
| 670 | # call the appropriate end tag handler |
| 671 | try: |
| 672 | f = self.dispatch[tag] |
| 673 | except KeyError: |
| 674 | if ':' not in tag: |
| 675 | return # unknown tag ? |
| 676 | try: |
| 677 | f = self.dispatch[tag.split(':')[-1]] |
| 678 | except KeyError: |
| 679 | return # unknown tag ? |
| 680 | return f(self, "".join(self._data)) |
| 681 | |
| 682 | # |
| 683 | # accelerator support |