HEX
Server: LiteSpeed
System: Linux atali.colombiahosting.com.co 5.14.0-570.12.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 13 06:11:55 EDT 2025 x86_64
User: coopserp (1713)
PHP: 8.2.29
Disabled: dl,exec,passthru,proc_open,proc_close,shell_exec,memory_limit,system,popen,curl_multi_exec,show_source,symlink,link,leak,listen,diskfreespace,tmpfile,ignore_user_abord,highlight_file,source,show_source,fpaththru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setid,posix_times,posix_ttyname,posix_uname,proc_get_status,proc_nice,proc_terminate
Upload Files
File: //proc/self/root/lib/python3.9/site-packages/dns/__pycache__/ipv4.cpython-39.pyc
a

�M�e�	�@sddZddlZddlmZddlZeed�dd�Zeeefed�dd	�Z	eeefed�d
d�Z
dS)zIPv4 helper functions.�N)�Union)�address�returncCs4t|�dkrtjj�d|d|d|d|dfS)z�Convert an IPv4 address in binary form to text form.

    *address*, a ``bytes``, the IPv4 address in binary form.

    Returns a ``str``.
    �z%u.%u.%u.%ur���)�len�dns�	exception�SyntaxError)r�r
�,/usr/lib/python3.9/site-packages/dns/ipv4.py�	inet_ntoasr)�textrcCs�t|t�s|��}n|}|�d�}t|�dkr6tjj�|D]8}|��sNtjj�t|�dkr:|dt	d�kr:tjj�q:z"dd�|D�}t
jdg|�R�WSty�tjj�Yn0d	S)
z�Convert an IPv4 address in text form to binary form.

    *text*, a ``str`` or ``bytes``, the IPv4 address in textual form.

    Returns a ``bytes``.
    �.rrr�0cSsg|]}t|��qSr
)�int)�.0�partr
r
r�
<listcomp>=�zinet_aton.<locals>.<listcomp>ZBBBBN)
�
isinstance�bytes�encode�splitr	r
rr�isdigit�ord�struct�pack�	Exception)rZbtext�partsr�br
r
r�	inet_aton's 



r#cCstj�tj�|��S)z�Verify that *address* is a valid text form IPv4 address and return its
    canonical text form.

    *text*, a ``str`` or ``bytes``, the IPv4 address in textual form.

    Raises ``dns.exception.SyntaxError`` if the text is not valid.
    )r
Zipv4rr#)rr
r
r�canonicalizeCs
r$)�__doc__r�typingrZ
dns.exceptionr
r�strrr#r$r
r
r
r�<module>s