
    9i                     Z   S SK Jr  S SKrS SKrS SKrS SKrS SKJrJrJ	r	  \(       a  S SK
Jr  OS SKJr  \(       aH  S SKrS SKJr  S rS SKJr  S rS rS S	KJr  S
 r\r\R0                  S:  a  S SKJr  OS SKJr  \r\r\rOS SK r S SK
Jr  \ R                  r\ R$                  r\ R&                  r\ RB                  r!\ R(                  r\ R*                  r\ R.                  r\ R4                  r\ R8                  r\ R:                  r\ R>                  r\(       a  SS jr!\(       a  / SQr"g/ r"g)    )unicode_literalsN)PY2PY3exec_)Mappingc                     U " U0 UD6$ N )fargskws      R/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/past/builtins/misc.pyapplyr      s    $~"~    )strc                 ,    [        [        U 45      5      $ )zE
Return a byte-string of one character with ordinal i; 0 <= i <= 256
)oldstrbytes)is    r   chrr      s     eQDk""r   c                   ^ ^ [        T [        5      (       a   [        T[        5      (       a  [        S5      e [        T [        R                  5      (       ar  [
        R                  " T 5      (       aW  [        T[        R                  5      (       d!  [        SR                  [        T5      S95      e[        T[        5      (       a  gg[        T[        R                  5      (       ar  [
        R                  " T5      (       aW  [        T [        R                  5      (       d!  [        SR                  [        T 5      S95      e[        T [        5      (       a  ggT T:  T T:  -
  $ ! [         Ga
    T T:X  a   g[        S	5      [        R                  [        [        [        [        [        4/nS	=p4[        U5       H-  u  pV[        T U5      (       a  Un[        TU5      (       d  M+  UnM/     [        X45      S:X  Gap  [        T [        5      (       a2  [        T[        5      (       a  [        T R!                  S
5      T5      s $ [        T[        5      (       a2  [        T [        5      (       a  [        T TR!                  S
5      5      s $ [        T [        5      (       a.  [#        T T5       H  u  px[        Xx5      n	U	S:w  d  M  U	s  s $     g[        T [        5      (       a  [%        T 5      [%        T5      :w  a   [        [%        T 5      [%        T5      5      s $ ['        U U4S jT  5       5      n
['        U U4S jT 5       5      nX:w  a  [        X5      s $ [        T U
   TU   5      s $ [        X45      s $ f = f)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
zcannot compare sets using cmp()z.cannot compare float("nan"), {type_y} with cmp)type_y   z.cannot compare {type_x}, float("nan") with cmp)type_xr   Nasciic              3   N   >#    U  H  oT;  d  TU   TU   :w  d  M  Uv   M     g 7fr	   r
   ).0axys     r   	<genexpr>cmp.<locals>.<genexpr>Z   %     #Oq!QJ!A$!A$,AAq   %	%c              3   N   >#    U  H  oT;  d  TU   TU   :w  d  M  Uv   M     g 7fr	   r
   )r   br    r!   s     r   r"   r#   [   r$   r%   )
isinstanceset	TypeErrornumbersNumbermathisnanformattypeintdictlistr   r   	enumeratecmpdecodeziplenmin)r    r!   
type_orderx_type_indexy_type_indexr   
type_matchx_elemy_elemelem_cmp_valx_keyy_keys   ``          r   r5   r5      s    a*Q"4"4=??7	3!W^^,,A!!W^^44#$T$[$[cghicj$[$klla%%!W^^,,A!!W^^44#$T$[$[cghicj$[$klla%%Ea!e$$ '	3AvT
deJ +/.L!*:!6a,,#$La,,#$L	 "7
 <.!3a''Jq#,>,>qxx0!44a''Jq#,>,>q!((7"3444((*-a)'*6':'1,#// +4
 4((1vQ'"3q63q622 ##Oq#O O ##Oq#O O >#&u#44#&qx5#::|22O'	3s_   BE& 
BE& 
E& &M;9A*M;'AM;AM;5M;M;
M;AM;<M;M;-M;:M;)internc                 :    S[         R                  " U 5      SS -   $ )zEoct(number) -> string

Return the octal representation of an integer
0   N)builtinsoct)numbers    r   rH   rH   d   s    
 X\\&)!"---r   )      )reloadc                    Uc7  [         R                  " 5       S   nUS   R                  nUS   R                  nOUc  Un[	        U[
        5      (       d  [        S5      e[	        U[
        5      (       d  [        S5      e[        U S5       nUR                  5       nSSS5        [        WU S5      n[        XaU5        g! , (       d  f       N(= f)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.
Nr   r   zglobals must be a mappingzlocals must be a mappingrbexec)inspectstack	f_globalsf_localsr(   r   r*   openreadcompiler   )filename	myglobalsmylocalscaller_framefinsourcecodes          r   execfiler^      s     "==?1-L$Q11I#A//H H)W--788(G,,677(D!SXXZF "vx0dx( "!s   B??
C)
r   r   r5   r^   rC   	raw_inputrL   unichrunicodexrange)NN)#
__future__r   rP   sysr-   r+   future.utilsr   r   r   collectionsr   collections.abcrG   r   past.builtinsr   r   r   r5   rC   rH   inputr_   version_info	importlibrL   impra   r`   rangerb   __builtin__r^   __all__r
   r   r   <module>rp      s   '  
   ( ( #'' ,#A3F . I
6!$ 	GFF#E
//C
//C##HF
//C%%IF!!GFF )0 8G Gr   