(match)
| 434 | @discovery_context.setter |
| 435 | def discovery_context(self, context): |
| 436 | def replace(match): |
| 437 | s = match.group() |
| 438 | return s.format(module=self.module, event=self) |
| 439 | |
| 440 | try: |
| 441 | self._discovery_context = self._discovery_context_regex.sub(replace, context) |