U
    
W[†  ã                   @   sX   d Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	 eeƒG dd„ de	j
eƒƒZdS )	zT
Address object for SSH network connections.

Maintainer: Paul Swartz

@since: 12.1
é    )ÚdivisionÚabsolute_import)Úimplementer)ÚIAddress)Úutilc                   @   s,   e Zd ZdZdZdd„ Zdd„ Zdd„ Zd	S )
ÚSSHTransportAddressa   
    Object representing an SSH Transport endpoint.

    This is used to ensure that any code inspecting this address and
    attempting to construct a similar connection based upon it is not
    mislead into creating a transport which is not similar to the one it is
    indicating.

    @ivar address: An instance of an object which implements I{IAddress} to
        which this transport address is connected.
    ©Úaddressc                 C   s
   || _ d S )Nr   )Úselfr	   © r   ú;/usr/lib/python3/dist-packages/twisted/conch/ssh/address.pyÚ__init__&   s    zSSHTransportAddress.__init__c                 C   s   d| j f S )NzSSHTransportAddress(%r)r   ©r
   r   r   r   Ú__repr__*   s    zSSHTransportAddress.__repr__c                 C   s   t d| jfƒS )NZSSH)Úhashr	   r   r   r   r   Ú__hash__.   s    zSSHTransportAddress.__hash__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZcompareAttributesr   r   r   r   r   r   r   r      s
   r   N)r   Z
__future__r   r   Zzope.interfacer   Ztwisted.internet.interfacesr   Ztwisted.pythonr   ZFancyEqMixinÚobjectr   r   r   r   r   Ú<module>   s   