From: Sebastian Wagner Date: Mon, 22 Feb 2021 12:00:34 +0000 (+0100) Subject: mgr/orch: drop __all__ from __init__.py X-Git-Tag: v17.1.0~2838^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b8dbdb6530ce3ce98df42abc3825e0876cf8388a;p=ceph.git 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 --- diff --git a/src/pybind/mgr/orchestrator/__init__.py b/src/pybind/mgr/orchestrator/__init__.py index 63f93092f2c9f..374d68d32562b 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__)