diff options
author | Martin Basti <mbasti@redhat.com> | 2016-10-04 16:54:44 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-10-06 10:43:36 +0200 |
commit | d9375881460d63cdd696bb0705da0ac205db9870 (patch) | |
tree | 3c7c4016f6b5ffd48f390d74003dffdf97b6a0ea /ipapython/install | |
parent | ac94d32c4fd543e33211c0331330c80c619e0058 (diff) | |
download | freeipa-d9375881460d63cdd696bb0705da0ac205db9870.tar.gz freeipa-d9375881460d63cdd696bb0705da0ac205db9870.tar.xz freeipa-d9375881460d63cdd696bb0705da0ac205db9870.zip |
Pylint: remove unused variables from installers and scripts
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Diffstat (limited to 'ipapython/install')
-rw-r--r-- | ipapython/install/core.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ipapython/install/core.py b/ipapython/install/core.py index 98ee588d0..e94c0f2c0 100644 --- a/ipapython/install/core.py +++ b/ipapython/install/core.py @@ -19,8 +19,6 @@ from ipapython.ipa_log_manager import root_logger from . import util from .util import from_ -# pylint: disable=unused-variable - __all__ = ['InvalidStateError', 'KnobValueError', 'Property', 'Knob', 'Configurable', 'Group', 'Component', 'Composite'] @@ -207,7 +205,7 @@ class Configurable(six.with_metaclass(abc.ABCMeta, object)): result = sorted(result, key=lambda r: r[0]) - for order, owner_cls, name in result: + for _order, owner_cls, name in result: yield owner_cls, name @classmethod @@ -316,7 +314,7 @@ class Configurable(six.with_metaclass(abc.ABCMeta, object)): Run the validation part of the configurable. """ - for nothing in self._validator(): + for _nothing in self._validator(): pass def _validator(self): @@ -333,7 +331,7 @@ class Configurable(six.with_metaclass(abc.ABCMeta, object)): Run the execution part of the configurable. """ - for nothing in self._executor(): + for _nothing in self._executor(): pass def _executor(self): @@ -541,7 +539,7 @@ class Composite(Configurable): result = sorted(result, key=lambda r: r[0]) - for order, owner_cls, name in result: + for _order, owner_cls, name in result: yield owner_cls, name def __getattr__(self, name): @@ -565,7 +563,7 @@ class Composite(Configurable): super(Composite, self)._reset() def _get_components(self): - for owner_cls, name in self.components(): + for _owner_cls, name in self.components(): yield getattr(self, name) def _configure(self): |