1
0
Fork 0

plugin_loader: Pylint fix

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 <olysonek@redhat.com>
This commit is contained in:
Ondřej Lysoněk 2017-02-14 12:45:00 +01:00
parent 43a8b706b1
commit 316f9b5bc3

View file

@ -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