LGTM: Name unused variable in loop

For loop variable '_nothing' is not used in the loop body. The name
'unused' is used to indicate that a variable is unused.

https://pagure.io/freeipa/issue/7344

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
This commit is contained in:
Christian Heimes
2018-01-03 10:14:03 +01:00
parent 1ed4461f33
commit a4f36eec0a
2 changed files with 3 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ class Step(Installable):
raise AttributeError('parent')
def _install(self):
for _nothing in self._installer(self.parent):
for unused in self._installer(self.parent):
yield from_(super(Step, self)._install())
@staticmethod
@@ -71,7 +71,7 @@ class Step(Installable):
yield
def _uninstall(self):
for _nothing in self._uninstaller(self.parent):
for unused in self._uninstaller(self.parent):
yield from_(super(Step, self)._uninstall())
@staticmethod

View File

@@ -110,7 +110,7 @@ msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg})'
[VARIABLES]
dummy-variables-rgx=_.+
dummy-variables-rgx=(_.+|unused)
[IPA]