lib.ec.ssh.Exec|Paramiko: Don't # export

The SSHClient classes Paramiko and Exec are exported via # export.
This is a bad idea, because if Paramiko is not installed, none of the
other's can be instantiated either: On the attempt to load them,
__init__.py is loaded first and fails. SSHClient.ssh_client() knows
what to do, no need to auto-import them into the lib.ec.ssh module.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-04-10 13:56:31 +02:00
commit 0e18d4abac
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ from ..SSHClient import SSHClient as Base
if TYPE_CHECKING: if TYPE_CHECKING:
from ...ExecContext import Result from ...ExecContext import Result
class Exec(Base): # export class Exec(Base):
def __init__(self, *args, **kwargs) -> None: def __init__(self, *args, **kwargs) -> None:
self.__askpass: str|None = None self.__askpass: str|None = None

View file

@ -9,7 +9,7 @@ from ...log import *
from ...ExecContext import Result from ...ExecContext import Result
from ..SSHClient import SSHClient as Base from ..SSHClient import SSHClient as Base
class Paramiko(Base): # export class Paramiko(Base):
def __init__(self, *args, **kwargs) -> None: def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)