U
    mÇfú  ã                   @   s0   d Z ddlZddlmZ G dd„ dƒZeƒ ZdS )z;
Email message and email sending related helper functions.
é    N)Úpunycodec                   @   s   e Zd Zdd„ Zdd„ ZdS )ÚCachedDnsNamec                 C   s   |   ¡ S )N)Úget_fqdn©Úself© r   ú:/tmp/pip-unpacked-wheel-siwebuq3/django/core/mail/utils.pyÚ__str__   s    zCachedDnsName.__str__c                 C   s   t | dƒstt ¡ ƒ| _| jS )NÚ_fqdn)Úhasattrr   ÚsocketÚgetfqdnr
   r   r   r   r   r      s    
zCachedDnsName.get_fqdnN)Ú__name__Ú
__module__Ú__qualname__r	   r   r   r   r   r   r      s   r   )Ú__doc__r   Zdjango.utils.encodingr   r   ZDNS_NAMEr   r   r   r   Ú<module>   s   
