[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-52]
rework init so classes all appear in the right package in docs (yaaaay)
This commit is contained in:
parent
7cd7841556
commit
646db7c787
|
@ -68,28 +68,34 @@ import transport, auth_transport, channel, rsakey, dsskey, message
|
||||||
import ssh_exception, file, packet, agent, server, util
|
import ssh_exception, file, packet, agent, server, util
|
||||||
import sftp_client, sftp_attr, sftp_handle, sftp_server, sftp_si
|
import sftp_client, sftp_attr, sftp_handle, sftp_server, sftp_si
|
||||||
|
|
||||||
randpool = transport.randpool
|
from transport import randpool, SecurityOptions, BaseTransport
|
||||||
Transport = auth_transport.Transport
|
from auth_transport import Transport
|
||||||
Channel = channel.Channel
|
from channel import Channel, ChannelFile
|
||||||
RSAKey = rsakey.RSAKey
|
from ssh_exception import SSHException, PasswordRequiredException, BadAuthenticationType
|
||||||
DSSKey = dsskey.DSSKey
|
from server import ServerInterface, SubsystemHandler
|
||||||
SSHException = ssh_exception.SSHException
|
from rsakey import RSAKey
|
||||||
Message = message.Message
|
from dsskey import DSSKey
|
||||||
PasswordRequiredException = ssh_exception.PasswordRequiredException
|
from sftp import SFTPError, BaseSFTP
|
||||||
BadAuthenticationType = ssh_exception.BadAuthenticationType
|
from sftp_client import SFTP, SFTPClient
|
||||||
SFTP = sftp_client.SFTP
|
from sftp_server import SFTPServer
|
||||||
SFTPClient = sftp_client.SFTPClient
|
from sftp_attr import SFTPAttributes
|
||||||
SFTPServer = sftp_server.SFTPServer
|
from sftp_handle import SFTPHandle
|
||||||
from sftp import SFTPError
|
from sftp_si import SFTPServerInterface
|
||||||
SFTPAttributes = sftp_attr.SFTPAttributes
|
from sftp_file import SFTPFile
|
||||||
SFTPHandle = sftp_handle.SFTPHandle
|
from message import Message
|
||||||
SFTPServerInterface = sftp_si.SFTPServerInterface
|
from packet import Packetizer
|
||||||
ServerInterface = server.ServerInterface
|
from file import BufferedFile
|
||||||
SubsystemHandler = server.SubsystemHandler
|
from agent import Agent, AgentKey
|
||||||
SecurityOptions = transport.SecurityOptions
|
from pkey import PKey
|
||||||
BufferedFile = file.BufferedFile
|
|
||||||
Packetizer = packet.Packetizer
|
# fix module names for epydoc
|
||||||
Agent = agent.Agent
|
for x in [Transport, SecurityOptions, Channel, SFTPServer, SSHException, \
|
||||||
|
PasswordRequiredException, BadAuthenticationType, ChannelFile, \
|
||||||
|
SubsystemHandler, BaseTransport, RSAKey, DSSKey, SFTPError, \
|
||||||
|
SFTP, SFTPClient, SFTPServer, Message, Packetizer, SFTPAttributes, \
|
||||||
|
SFTPHandle, SFTPServerInterface, BufferedFile, Agent, AgentKey, \
|
||||||
|
PKey, BaseSFTP, SFTPFile, ServerInterface]:
|
||||||
|
x.__module__ = 'paramiko'
|
||||||
|
|
||||||
from common import AUTH_SUCCESSFUL, AUTH_PARTIALLY_SUCCESSFUL, AUTH_FAILED, \
|
from common import AUTH_SUCCESSFUL, AUTH_PARTIALLY_SUCCESSFUL, AUTH_FAILED, \
|
||||||
OPEN_SUCCEEDED, OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED, OPEN_FAILED_CONNECT_FAILED, \
|
OPEN_SUCCEEDED, OPEN_FAILED_ADMINISTRATIVELY_PROHIBITED, OPEN_FAILED_CONNECT_FAILED, \
|
||||||
|
@ -119,14 +125,12 @@ __all__ = [ 'Transport',
|
||||||
'ServerInterface',
|
'ServerInterface',
|
||||||
'BufferedFile',
|
'BufferedFile',
|
||||||
'Agent',
|
'Agent',
|
||||||
'transport',
|
'AgentKey',
|
||||||
'auth_transport',
|
|
||||||
'channel',
|
|
||||||
'rsakey',
|
'rsakey',
|
||||||
'dsskey',
|
'dsskey',
|
||||||
'pkey',
|
'pkey',
|
||||||
'message',
|
'message',
|
||||||
'ssh_exception',
|
'transport',
|
||||||
'sftp',
|
'sftp',
|
||||||
'sftp_client',
|
'sftp_client',
|
||||||
'sftp_server',
|
'sftp_server',
|
||||||
|
|
Loading…
Reference in New Issue