(pat)
| 41 | |
| 42 | @functools.lru_cache(maxsize=32768, typed=True) |
| 43 | def _compile_pattern(pat): |
| 44 | if isinstance(pat, bytes): |
| 45 | pat_str = str(pat, 'ISO-8859-1') |
| 46 | res_str = translate(pat_str) |
| 47 | res = bytes(res_str, 'ISO-8859-1') |
| 48 | else: |
| 49 | res = translate(pat) |
| 50 | return re.compile(res).match |
| 51 | |
| 52 | |
| 53 | def filter(names, pat): |
no test coverage detected
searching dependent graphs…