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:
parent
43a8b706b1
commit
316f9b5bc3
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue