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: //usr/local/lib/python3.9/site-packages/past/builtins/__pycache__/misc.cpython-39.pyc
a

��?h��@sbddlmZddlZddlZddlZddlZddlmZmZm	Z	erRddl
mZnddlmZer�ddl
Z
ddlmZdd�ZddlmZdd	�Zd
d�ZddlmZd
d�ZeZejdkr�ddlmZnddlmZeZeZeZnVddl Z ddl
mZe jZe jZe jZe j!Z!e jZe jZe jZe jZe jZe jZe jZe�rJddd�Z!e�rZgd�Z"ngZ"dS)�)�unicode_literalsN)�PY2�PY3�exec_)�MappingcOs||i|��S�N�)�f�args�kwrr�</usr/local/lib/python3.9/site-packages/past/builtins/misc.py�applysr
)�strcCstt|f��S)zU
        Return a byte-string of one character with ordinal i; 0 <= i <= 256
        )�oldstr�bytes)�irrr�chrsrc
s�t�t�rt�t�rtd��z�t�tj�rjt���rjt�tj�sTtdjt��d���t�t	�rdWdSWdSt�tj�r�t���r�t�tj�s�tdjt��d���t�t	�r�WdSWdS��k��kWSt�y���kr�YdStd	�tjt
tttt
fg}d	}}t|�D]*\}}t�|��r&|}t�|��r|}�qt||�dk�r|t�t
��rvt�t��rvt��d
���YSt�t
��r�t�t��r�t���d
��YSt�t��r�t���D]*\}}t||�}	|	dk�r�|	YS�q�YdSt�t
��r|t��t��k�rtt��t���YSt��fdd��D��}
t��fd
d��D��}|
|k�rft|
|�YSt�|
�|�YSt||�YS0d	S)z�
        cmp(x, y) -> integer

        Return negative if x<y, zero if x==y, positive if x>y.
        Python2 had looser comparison allowing cmp None and non Numerical types and collections.
        Try to match the old behavior
        zcannot compare sets using cmp()z.cannot compare float("nan"), {type_y} with cmp)Ztype_y����z.cannot compare {type_x}, float("nan") with cmp)Ztype_xrN�asciic3s*|]"}|�vs�|�|kr|VqdSrr)�.0�a��x�yrr�	<genexpr>Z�zcmp.<locals>.<genexpr>c3s*|]"}|�vs�|�|kr|VqdSrr)r�brrrr)�
isinstance�set�	TypeError�numbers�Number�math�isnan�format�type�int�dict�listrr�	enumerate�cmp�decode�zip�len�min)rrZ
type_orderZx_type_indexZy_type_indexrZ
type_matchZx_elemZy_elemZelem_cmp_valZx_keyZy_keyrrrr+sf

�


r+)�interncCsdt�|�dd�S)zUoct(number) -> string

        Return the octal representation of an integer
        �0�N)�builtins�oct)�numberrrrr4dsr4)��)�reloadcCs�|dur*t��d}|dj}|dj}n|dur6|}t|t�sHtd��t|t�sZtd��t|d��}|��}Wd�n1s�0Yt	||d�}t
|||�dS)z�
        Read and execute a Python script from a file in the given namespaces.
        The globals and locals are dictionaries, defaulting to the current
        globals and locals. If only globals is given, locals defaults to it.
        Nrrzglobals must be a mappingzlocals must be a mapping�rb�exec)�inspect�stack�	f_globals�f_localsrrr �open�read�compiler)�filenameZ	myglobalsZmylocalsZcaller_frameZfin�source�coderrr�execfile�s


&rE)
r
rr+rEr0�	raw_inputr8�unichr�unicode�xrange)NN)#�
__future__rr;�sysr#r!Zfuture.utilsrrr�collectionsr�collections.abcr3r
Z
past.builtinsrrrr+r0r4�inputrF�version_info�	importlibr8�imprHrG�rangerI�__builtin__rE�__all__rrrr�<module>sTC