o
    tPfd                     @   s   d dl mZmZmZ d dlZd dlZd dlZd dlZddl	m
Z
 ddl	mZ eh dZeh dZddddd	deefd
dZdS )    )absolute_importprint_functiondivisionN   )sysinfo)util>   gevent.libevgevent.libuv.loopgevent.libev.watchergevent.libuv.watchergevent.resolver.aresgevent.resolver_aresgevent.resolver.dnspython>   arescore_util__init__corecffi	_corecffi
_semaphore_corecffi_buildFTc                 c   s   t jrd}| du rtjtj} |du rd}n|du rd}tt| D ]}tj	| |}	tj
|	rm|s7q%|s>|dv r>q%tj	|	d}
tj|
rl|
|| fV  t|	|| d ||||||dD ]	\}}||fV  qbq%|d	r|dd
 }|dr|dd }||v rq%|| }|r||v rz!t  tdt t| W d   n1 sw   Y  W n ty   td| Y q%w |	|fV  q%|r|t jrd|v rq%|dr|	||dd  fV  q%|	||dd
  fV  q%dS )a  
    Find gevent modules, yielding tuples of ``(path, importable_module_name)``.

    :keyword bool check_optional: If true (the default), then if we discover a
       module that is known to be optional on this system (such as a backend),
       we will attempt to import it; if the import fails, it will not be returned.
       If false, then we will not make such an attempt, the caller will need to be prepared
       for an `ImportError`; the caller can examine *optional_modules* against
       the yielded *importable_module_name*.
    FNzgevent. )testingtestsz__init__.py.)
include_so	recursivecheck_optionalinclude_testsoptional_modulesexcluded_modulesz.py_dignorez#Unable to import optional module %sz.pypy-z_d.so)r   PYPYospathdirnamegevent__file__sortedlistdirjoinisdirexistswalk_modulesendswithwarningscatch_warningssimplefilterDeprecationWarning	importlibimport_moduleImportErrorr   debugSHARED_OBJECT_EXTENSION)basedirmodpathr   r   r   r   r   r    fnr(   pkg_initpmxmodname rD   W/var/www/html/humari/django-venv/lib/python3.10/site-packages/gevent/testing/modules.pyr1   9   st   	



r1   )
__future__r   r   r   r7   os.pathr'   r3   r*   r   r   r   	frozensetOPTIONAL_MODULESEXCLUDED_MODULESr1   rD   rD   rD   rE   <module>   s$   