(regex: Pattern[str], string: str)
| 103 | |
| 104 | |
| 105 | def decode_escapes(regex: Pattern[str], string: str) -> str: |
| 106 | def decode_match(match: Match[str]) -> str: |
| 107 | return codecs.decode(match.group(0), "unicode-escape") # type: ignore |
| 108 | |
| 109 | return regex.sub(decode_match, string) |
| 110 | |
| 111 | |
| 112 | def parse_key(reader: Reader) -> Optional[str]: |
no outgoing calls
no test coverage detected
searching dependent graphs…