a
    Šxdß  ã                   @   sP   d Z ddlZddlZddlmZ e d¡Ze de d ¡Zee	dœdd	„Z
dS )
z=tldextract helpers for testing and fetching remote resources.é    N)Úscheme_charszi^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$z^([z]+:)?//)Úmaybe_ipÚreturnc              	   C   s\   | d   ¡ sdS zt | ¡ W dS  ttfyF   t | ¡rBY dS Y n tyV   Y n0 dS )z+Does the given str look like an IP address?r   FT)ÚisdigitÚsocketÚ	inet_atonÚAttributeErrorÚUnicodeErrorÚIP_REÚmatchÚOSError)r   © r   úI/var/www/html/Ranjet/env/lib/python3.9/site-packages/tldextract/remote.pyÚlooks_like_ip   s    


r   )Ú__doc__Úrer   Úurllib.parser   Úcompiler
   Ú	SCHEME_REÚstrÚboolr   r   r   r   r   Ú<module>   s   þ