Remove unused variables in the code

This commit removes unused variables or rename variables as "expected to
be unused" by using "_" prefix.

This covers only cases where fix was easy or only one unused variable
was in a module

Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Martin Basti committed 2016-09-27 13:35:58 +02:00
1 parent 452b08754d
commit 0f88f8fe88
47 files changed
+54 -69

No files matched your search

+1 -1
View File
@@ -152,7 +152,7 @@ class ConfigureTool(admintool.AdminTool):
**kwargs
)
for group, opt_group in groups.items():
for opt_group in groups.values():
parser.add_option_group(opt_group)
super(ConfigureTool, cls).add_options(parser,
+2 -2
View File
@@ -60,7 +60,7 @@ class Step(Installable):
raise AttributeError('parent')
def _install(self):
for nothing in self._installer(self.parent):
for _nothing in self._installer(self.parent):
yield from_(super(Step, self)._install())
@staticmethod
@@ -68,7 +68,7 @@ class Step(Installable):
yield
def _uninstall(self):
for nothing in self._uninstaller(self.parent):
for _nothing in self._uninstaller(self.parent):
yield from_(super(Step, self)._uninstall())
@staticmethod