(matches)
| 103 | """ |
| 104 | |
| 105 | def re_filt(matches): |
| 106 | if TRACE: |
| 107 | logger_debug('re_filt: pattern="{}"'.format(pattern)) |
| 108 | for key, match, line, line_number in matches: |
| 109 | if matcher(match): |
| 110 | if TRACE: |
| 111 | logger_debug('re_filt: filtering match: "{}"'.format(match)) |
| 112 | continue |
| 113 | yield key, match, line, line_number |
| 114 | |
| 115 | matcher = re.compile(pattern, re.UNICODE | re.IGNORECASE).match |
| 116 | return re_filt |
nothing calls this directly
no test coverage detected