Lines Matching refs:self
32 def __init__(self):
34 self.fd = fd_w
35 self._false_positives = []
36 self._buf = bytearray()
37 self._thread = threading.Thread(target=self._loop, daemon=True, args=(fd_r,))
38 self._thread.start()
40 def register_output(self, pattern, count=1, flags=re.MULTILINE):
47 self._false_positives.append((pattern, flags, count))
49 def _loop(self, ifd):
57 self._buf += buf
59 def _check(self):
60 os.close(self.fd)
61 self._thread.join()
63 buf = self._buf.decode('utf8', errors='replace')
66 for (pattern, flags, count) in self._false_positives: