:param groups: names of processor groups to be applied :param env: Environment :param kwargs: additional keyword arguments for processors
(self, groups: List[str], env=Environment(), **kwargs)
| 27 | """A delegate class that invokes the actual processors.""" |
| 28 | |
| 29 | def __init__(self, groups: List[str], env=Environment(), **kwargs): |
| 30 | """ |
| 31 | :param groups: names of processor groups to be applied |
| 32 | :param env: Environment |
| 33 | :param kwargs: additional keyword arguments for processors |
| 34 | |
| 35 | """ |
| 36 | available_plugins = plugin_manager.get_formatters_grouped() |
| 37 | self.enabled_plugins = [] |
| 38 | for group in groups: |
| 39 | for cls in available_plugins[group]: |
| 40 | p = cls(env=env, **kwargs) |
| 41 | if p.enabled: |
| 42 | self.enabled_plugins.append(p) |
| 43 | |
| 44 | def format_headers(self, headers: str) -> str: |
| 45 | for p in self.enabled_plugins: |
nothing calls this directly
no test coverage detected