From b8dbdb6530ce3ce98df42abc3825e0876cf8388a Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Mon, 22 Feb 2021 13:00:34 +0100 Subject: [PATCH] mgr/orch: drop __all__ from __init__.py `__all__` is only required if you want to modify the `form .. import *` behavior. We don't need it. Signed-off-by: Sebastian Wagner --- src/pybind/mgr/orchestrator/__init__.py | 33 +------------------------ 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/src/pybind/mgr/orchestrator/__init__.py b/src/pybind/mgr/orchestrator/__init__.py index 63f93092f2c..374d68d3256 100644 --- a/src/pybind/mgr/orchestrator/__init__.py +++ b/src/pybind/mgr/orchestrator/__init__.py @@ -1,4 +1,4 @@ -from __future__ import absolute_import +# flake8: noqa from .module import OrchestratorCli @@ -14,38 +14,7 @@ from ._interface import \ InventoryHost, DeviceLightLoc, \ UpgradeStatusSpec, daemon_type_to_service, service_to_daemon_types -__all__ = [ - 'OrchestratorCli', - 'Completion', - 'TrivialReadCompletion', - 'raise_if_exception', - 'ProgressReference', - 'pretty_print', - '_Promise', - 'CLICommand', - '_cli_write_command', - '_cli_read_command', - 'CLICommandMeta', - 'Orchestrator', - 'OrchestratorClientMixin', - 'OrchestratorValidationError', - 'OrchestratorError', - 'NoOrchestrator', - 'ServiceDescription', - 'InventoryFilter', - 'HostSpec', - 'DaemonDescription', - 'OrchestratorEvent', - 'set_exception_subject', - 'InventoryHost', - 'DeviceLightLoc', - 'UpgradeStatusSpec', - 'daemon_type_to_service', - 'service_to_daemon_types', - -] import os if 'UNITTEST' in os.environ: import tests - __all__.append(tests.__name__) -- 2.39.5