mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
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:
parent
41b0b8f023
commit
0e18d4abac
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ from ..SSHClient import SSHClient as Base
|
|||
if TYPE_CHECKING:
|
||||
from ...ExecContext import Result
|
||||
|
||||
class Exec(Base): # export
|
||||
class Exec(Base):
|
||||
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
self.__askpass: str|None = None
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from ...log import *
|
|||
from ...ExecContext import Result
|
||||
from ..SSHClient import SSHClient as Base
|
||||
|
||||
class Paramiko(Base): # export
|
||||
class Paramiko(Base):
|
||||
|
||||
def __init__(self, *args, **kwargs) -> None:
|
||||
super().__init__(*args, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue