(self, source_path)
| 254 | return bool(self._preamble_pattern.match(preamble)) |
| 255 | |
| 256 | def _check_content(self, source_path): |
| 257 | if self.source_path is not None: |
| 258 | return source_path == self.source_path |
| 259 | elif self.source_path_regex is not None: |
| 260 | return self.source_path_regex.match(source_path) |
| 261 | else: |
| 262 | return True |
| 263 | |
| 264 | |
| 265 | class _BaseEventEntry(_BaseEntry): |