(self, line: str)
| 163 | return None |
| 164 | |
| 165 | def _format_paths(self, line: str) -> str: |
| 166 | result = line |
| 167 | for needle, replacement, compiled_pattern in self._substitutions: |
| 168 | if needle in result and compiled_pattern.search(result): |
| 169 | result = compiled_pattern.sub(replacement, result) |
| 170 | return result |
| 171 | |
| 172 | |
| 173 | def create_filtering_echo_callback() -> Callable[[str], None]: |