From 316f9b5bc3227788e20556b9d5a5ea0f592885f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Tue, 14 Feb 2017 12:45:00 +0100 Subject: [PATCH] plugin_loader: Pylint fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Initialize some attributes of PluginLoader to avoid the following pylint errors: E: 21,14: Instance of 'PluginLoader' has no '_namespace' member (no-member) E: 22,14: Instance of 'PluginLoader' has no '_prefix' member (no-member) E: 23,14: Instance of 'PluginLoader' has no '_interface' member (no-member) The attributes were initialized only in subclasses. Signed-off-by: Ondřej Lysoněk --- tuned/utils/plugin_loader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tuned/utils/plugin_loader.py b/tuned/utils/plugin_loader.py index aa80e20..cdaa040 100644 --- a/tuned/utils/plugin_loader.py +++ b/tuned/utils/plugin_loader.py @@ -17,6 +17,9 @@ class PluginLoader(object): def __init__(self): super(PluginLoader, self).__init__() + self._namespace = None + self._prefix = None + self._interface = None self._set_loader_parameters() assert type(self._namespace) is str assert type(self._prefix) is str