B
    pjÆ`  ã               @   s6   d Z ddlZddd„Zdd„ Zddd„Zdd
d„ZdS )z@
some deprecated calls

(c) 2008-2009, Holger Krekel and others
é    Nc             C   s&   t ddƒ t d¡}| |_tj |¡S )zZinstantiate a gateway to a subprocess
    started with the given 'python' executable.
    z1.0.0b4zuse makegateway('popen')Úpopen)ÚAPIWARNÚexecnetÚXSpecÚpythonÚdefault_groupÚmakegateway)r   Úspec© r
   ú1lib/python3.7/site-packages/execnet/deprecated.pyÚPopenGateway
   s    

r   c             C   s(   t ddƒ t d | |¡¡}tj |¡S )a@  This Gateway provides interaction with a remote process
    by connecting to a specified socket.  On the remote
    side you need to manually start a small script
    (py/execnet/script/socketserver.py) that accepts
    SocketGateway connections or use the experimental
    new_remote() method on existing gateways.
    z1.0.0b4z#use makegateway('socket=host:port')zsocket={}:{})r   r   r   Úformatr   r   )ZhostZportr	   r
   r
   r   ÚSocketGateway   s    
r   c             C   s0   t ddƒ t d|  ¡}||_||_tj |¡S )z‡instantiate a remote ssh process with the
    given 'sshaddress' and remotepython version.
    you may specify an ssh_config file.
    z1.0.0b4zuse makegateway('ssh=host')zssh=%s)r   r   r   r   Ú
ssh_configr   r   )Z
sshaddressZremotepythonr   r	   r
   r
   r   Ú
SshGateway!   s
    
r   é   c             C   s*   dd l }td | |¡ƒ}|j||d d S )Nr   z(since version {}) {})Ú
stacklevel)ÚwarningsÚDeprecationWarningr   Úwarn)ÚversionÚmsgr   r   ZWarnr
   r
   r   r   -   s    r   )N)NN)r   )Ú__doc__r   r   r   r   r   r
   r
   r
   r   Ú<module>   s
   


