
    vKg	                     h    S r SSKrSSKrSSKrSSKrSSKJr  SrSrSr	Sr
SrS	 rSS
 jrSS jrS rg)zX
Re-implementation of find_module and get_frozen_object
from the deprecated imp module.
    N)module_from_spec               c                     [        U[        5      (       a(  [        R                  R	                  5       R
                  O[        R                  R
                  nU" X5      $ N)
isinstancelist	importlib	machinery
PathFinder	find_specutil)modulepathsfinders      O/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/setuptools/_imp.pyr   r      sJ     eT"" 	&&(22^^%% 
 &      c                 b   [        X5      nUc  [        SU -  5      eUR                  (       d;  [        US5      (       a*  [        R
                  R                  SUR                  5      nSnSn[        UR                  [        5      nUR                  S:X  d:  U(       a@  [        UR                  [        R                  R                  5      (       a  [        nSnS=pxGOMUR                  S:X  d:  U(       a?  [        UR                  [        R                  R                  5      (       a  [         nSnS=pxOUR                  (       a  UR                  n["        R$                  R'                  U5      S	   nU[        R                  R(                  ;   a  S
OSnU[        R                  R(                  ;   a  [*        n[,        R.                  " U5      nO[U[        R                  R0                  ;   a  [2        n[/        US5      nO*U[        R                  R4                  ;   a  [6        nOSnS=pxXFXxU44$ )z7Just like 'imp.find_module()', but with package supportNCan't find %ssubmodule_search_locationsz__init__.pyfrozen zbuilt-inr   rrb)r   ImportErrorhas_locationhasattrr   r   spec_from_loaderloaderr   typeorigin
issubclassr   FrozenImporter	PY_FROZENBuiltinImporter	C_BUILTINospathsplitextSOURCE_SUFFIXES	PY_SOURCEtokenizeopenBYTECODE_SUFFIXESPY_COMPILEDEXTENSION_SUFFIXESC_EXTENSION)	r   r   speckindfilestaticr,   suffixmodes	            r   find_moduler<      s   V#D|/F233/K!L!L~~..}dkkJDDT*Fxt{{I$7$7$F$FGGz!t{{I$7$7$G$GHH			{{!!$'*	 3 3 C CCsY((888D==&Dy**<<<Dd#Dy**===D d+++r   c                 x    [        X5      nU(       d  [        SU -  5      eUR                  R                  U 5      $ Nr   )r   r   r#   get_code)r   r   r6   s      r   get_frozen_objectr@   L   s4    V#D/F233;;''r   c                 X    [        X5      nU(       d  [        SU -  5      e[        U5      $ r>   )r   r   r   )r   r   infor6   s       r   
get_modulerC   S   s*    V#D/F233D!!r   r
   )__doc__importlib.machineryr   importlib.utilr+   r0   r   r/   r3   r5   r*   r(   r   r<   r@   rC    r   r   <module>rH      sI   
   	  +			!-,`("r   