MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / re_filt

Function re_filt

src/cluecode/finder.py:105–113  ·  view source on GitHub ↗
(matches)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

logger_debugFunction · 0.70
formatMethod · 0.45

Tested by

no test coverage detected