From 1e84b9d35ead252ba38b2f9e64452460df1b0e11 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Tue, 31 Dec 2019 15:09:08 -0500 Subject: [PATCH] Keep handlers are attribute in AutoProcessor --- tracetools_analysis/tracetools_analysis/processor/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracetools_analysis/tracetools_analysis/processor/__init__.py b/tracetools_analysis/tracetools_analysis/processor/__init__.py index 556b10d..cef2e23 100644 --- a/tracetools_analysis/tracetools_analysis/processor/__init__.py +++ b/tracetools_analysis/tracetools_analysis/processor/__init__.py @@ -424,9 +424,9 @@ class AutoProcessor(): :param events: the list of events to process :param kwargs: the kwargs to provide when instanciating EventHandler subclasses """ - handlers = self.get_applicable_event_handlers(events) + self.handlers = self.get_applicable_event_handlers(events) Processor( - *handlers, + *self.handlers, **kwargs, ).process(events)