()
| 995 | literal = [] |
| 996 | lappend = literal.append |
| 997 | def addliteral(): |
| 998 | if s.istext: |
| 999 | result.append(''.join(literal)) |
| 1000 | else: |
| 1001 | # The tokenizer implicitly decodes bytes objects as latin-1, we must |
| 1002 | # therefore re-encode the final representation. |
| 1003 | result.append(''.join(literal).encode('latin-1')) |
| 1004 | del literal[:] |
| 1005 | def addgroup(index, pos): |
| 1006 | if index > pattern.groups: |
| 1007 | raise s.error("invalid group reference %d" % index, pos) |
no test coverage detected
searching dependent graphs…