From fbc11104faa08bd8df4a3b4b453e96743e924e75 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Wed, 1 Jan 2020 00:16:23 -0500 Subject: [PATCH] Mention why EventHandler does not raise when instantiated directly --- .../tracetools_analysis/processor/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tracetools_analysis/tracetools_analysis/processor/__init__.py b/tracetools_analysis/tracetools_analysis/processor/__init__.py index 9e54ed8..a907262 100644 --- a/tracetools_analysis/tracetools_analysis/processor/__init__.py +++ b/tracetools_analysis/tracetools_analysis/processor/__init__.py @@ -107,8 +107,9 @@ class EventHandler(Dependant): """ Base event handling class. - Provides handling functions for some events, depending on the name. - Passes that on to a data model. To be subclassed. + Provides handling functions for some events, depending on the name. Passes that on to a data + model. Should be subclassed, but it is not necessary since the handling functions can be + anything; therefore it does not raise any error if it is directly instantiated. """ def __init__(