Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
°‹EYc@sŠddlZddlmZddlZddlmZddlZddlZddlm	Z	ddl
mZdefd„ƒYZdS(iÿÿÿÿN(tsplit(tselect(tProxyCommandFailure(tClosingContextManagertProxyCommandcBsYeZdZd„Zd„Zd„Zd„Zed„ƒZed„ƒZ	d„Z
RS(sª
    Wraps a subprocess running ProxyCommand-driven programs.

    This class implements a the socket-like interface needed by the
    `.Transport` and `.Packetizer` classes. Using this class instead of a
    regular socket makes it possible to talk with a Popen'd command that will
    proxy traffic between the client and a server hosted in another machine.

    Instances of this class may be used as context managers.
    c
Cs\ddlm}m}t|ƒ|_||jd|d|d|ddƒ|_d|_dS(	s
        Create a new CommandProxy instance. The instance created by this
        class can be passed as an argument to the `.Transport` class.

        :param str command_line:
            the command that should be executed and used as the proxy.
        iÿÿÿÿ(tPopentPIPEtstdintstdouttstderrtbufsizeiN(t
subprocessRRtshlsplittcmdtprocesstNonettimeout(tselftcommand_lineRR((sC/home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/proxy.pyt__init__*s

cCsUy|jjj|ƒWn1tk
rJ}tdj|jƒ|jƒ‚nXt|ƒS(sº
        Write the content received from the SSH client to the standard
        input of the forked command.

        :param str content: string to be sent to the forked command
        t (	RRtwritetIOErrorRtjoinR
tstrerrortlen(Rtcontentte((sC/home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/proxy.pytsend:s
"c
CsPyød}tjƒ}xÛt|ƒ|kròd}|jdk	r}tjƒ|}||jkrmtjƒ‚n|j|}nt|jjggg|ƒ\}}}|r|d|jjkr|tj	|jjj
ƒ|t|ƒƒ7}qqW|SWnQtjk
r|r|S‚n1tk
rK}	tdj
|jƒ|	jƒ‚nXdS(sÎ
        Read from the standard output of the forked program.

        :param int size: how many chars should be read

        :return: the string of bytes read, which may be shorter than requested
        tiRN(ttimeRRRtsocketRRRtostreadtfilenoRRRR
R(
Rtsizetbuffertstarttselect_timeouttelapsedtrtwtxR((sC/home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/proxy.pytrecvKs,$	*cCstj|jjtjƒdS(N(R tkillRtpidtsignaltSIGTERM(R((sC/home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/proxy.pytcloselscCs|jjdk	S(N(Rt
returncodeR(R((sC/home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/proxy.pytclosedoscCs|jS(N(R2(R((sC/home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/proxy.pyt_closedsscCs
||_dS(N(R(RR((sC/home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/proxy.pyt
settimeoutxs(t__name__t
__module__t__doc__RRR+R0tpropertyR2R3R4(((sC/home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/proxy.pyRs
			!	(
R tshlexRRR.RRRtparamiko.ssh_exceptionRt
paramiko.utilRR(((sC/home/tvault/.virtenv/lib/python2.7/site-packages/paramiko/proxy.pyt<module>s