Return a ElementTree element from the given match. Subclasses should override this method. Keyword arguments: * m: A re match object containing a match of the pattern.
(self, m)
| 138 | return self.compiled_re |
| 139 | |
| 140 | def handleMatch(self, m): |
| 141 | """Return a ElementTree element from the given match. |
| 142 | |
| 143 | Subclasses should override this method. |
| 144 | |
| 145 | Keyword arguments: |
| 146 | |
| 147 | * m: A re match object containing a match of the pattern. |
| 148 | |
| 149 | """ |
| 150 | pass |
| 151 | |
| 152 | def type(self): |
| 153 | """ Return class name, to define pattern type """ |