o
    ,º]C
  ã                   @   s0  d dl mZ d dlZd dlmZmZmZ erd dlmZ nd dl	mZ erZd dl
Z
d dl	mZ dd„ Zd dlmZ dd	„ Zd
d„ Zd dlmZ dd„ ZeZd dlmZ eZeZeZn+d dlZd dlmZ ejZejZejZejZejZejZejZejZejZejZejZerŒddd„Zer”g d¢ZdS g ZdS )é    )Úunicode_literalsN)ÚPY2ÚPY3Úexec_)ÚMappingc                 O   s   | |i |¤ŽS )N© )ÚfÚargsÚkwr   r   úO/var/www/html/myproject/venv/lib/python3.10/site-packages/past/builtins/misc.pyÚapply   s   r   )Ústrc                 C   s   t t| fƒƒS )zU
        Return a byte-string of one character with ordinal i; 0 <= i <= 256
        )ÚoldstrÚbytes)Úir   r   r   Úchr   s   r   c                 C   s   | |k| |k  S )zf
        cmp(x, y) -> integer

        Return negative if x<y, zero if x==y, positive if x>y.
        r   )ÚxÚyr   r   r   Úcmp   s   r   )Úinternc                 C   s   dt  | ¡dd…  S )zUoct(number) -> string

        Return the octal representation of an integer
        Ú0é   N)ÚbuiltinsÚoct)Únumberr   r   r   r   %   s   r   )Úreloadc                 C   s¨   |du rt  ¡ d }|d j}|d j}n|du r|}t|tƒs$tdƒ‚t|tƒs-tdƒ‚t| dƒ�}| ¡ }W d  ƒ n1 sAw   Y  t	|| dƒ}t
|||ƒ dS )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.
        Né   r   zglobals must be a mappingzlocals must be a mappingÚrbÚexec)ÚinspectÚstackÚ	f_globalsÚf_localsÚ
isinstancer   Ú	TypeErrorÚopenÚreadÚcompiler   )ÚfilenameÚ	myglobalsÚmylocalsÚcaller_frameÚfinÚsourceÚcoder   r   r   ÚexecfileB   s   



ÿr/   )
r   r   r   r/   r   Ú	raw_inputr   ÚunichrÚunicodeÚxrange)NN)Ú
__future__r   r   Úfuture.utilsr   r   r   Úcollectionsr   Úcollections.abcr   r   Úpast.builtinsr   r   r   r   Úsysr   r   Úinputr0   Úimpr   r2   r1   Úranger3   Ú__builtin__r/   Ú__all__r   r   r   r   Ú<module>   sL    
