Return unmatched part of re.Match object.
(match)
| 337 | # ----------------------------------------------------------------------------- |
| 338 | |
| 339 | def unmatched(match): |
| 340 | """Return unmatched part of re.Match object.""" |
| 341 | start, end = match.span(0) |
| 342 | return match.string[:start]+match.string[end:] |
| 343 | |
| 344 | HEADER_TOKEN_RE = re.compile(r"^\s*([^=\s;,]+)") |
| 345 | HEADER_QUOTED_VALUE_RE = re.compile(r"^\s*=\s*\"([^\"\\]*(?:\\.[^\"\\]*)*)\"") |
no outgoing calls
no test coverage detected
searching dependent graphs…