From e7e831c506b1a42306d4180fd4cae1a3aa7ba347 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Tue, 31 Dec 2019 20:19:56 -0500 Subject: [PATCH] Fix linter errors --- .../tracetools_analysis/processor/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tracetools_analysis/tracetools_analysis/processor/__init__.py b/tracetools_analysis/tracetools_analysis/processor/__init__.py index 698359f..a0fedda 100644 --- a/tracetools_analysis/tracetools_analysis/processor/__init__.py +++ b/tracetools_analysis/tracetools_analysis/processor/__init__.py @@ -346,8 +346,11 @@ class Processor(): :param handler_type: the type of EventHandler subclass to find :return: the EventHandler instance if found, otherwise `None` - """ - return next((handler for handler in self._expanded_handlers if type(handler) is handler_type), None) + """ + return next( + (handler for handler in self._expanded_handlers if type(handler) is handler_type), + None, + ) @staticmethod def get_event_names(