pylint: Fix several warnings

Fixes Pylint warnings:
- R1729(use-a-generator)
- R1710(inconsistent-return-statements)
- R1727(condition-evals-to-constant)

Fixes: https://pagure.io/freeipa/issue/8772
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Stanislav Levin authored and Alexander Bokovoy committed 2021-03-30 13:18:09 +03:00
1 parent 6c1dc1b226
commit 2bec09aa03
6 files changed
+9 -4

No files matched your search

+2
View File
@@ -329,6 +329,8 @@ class ConfigureTool(admintool.AdminTool):
except RuntimeError as e:
self.option_parser.error(str(e))
return None
def run(self):
cfgr = self.init_configurator()