https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/hgdemandimport/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/hgdemandimport/__pycache__/demandimportpy3.cpython-310.pyc
o

�]Lb��@s�dZddlmZddlZddlZddlZddlmZda	ej
dd�dkZGd	d
�d
ejj
�ZGdd�de�Ze�ad
d�Zdd�Zdd�Zdd�Zejdd��ZdS)a�Lazy loading for Python 3.6 and above.

This uses the new importlib finder/loader functionality available in Python 3.5
and up. The code reuses most of the mechanics implemented inside importlib.util,
but with a few additions:

* Allow excluding certain modules from lazy imports.
* Expose an interface that's substantially the same as demandimport for
  Python 2.

This also has some limitations compared to the Python 2 implementation:

* Much of the logic is per-package, not per-module, so any packages loaded
  before demandimport is enabled will not be lazily imported in the future. In
  practice, we only expect builtins to be loaded before demandimport is
  enabled.
�)�absolute_importN�)�tracingF�)��cs eZdZdZ�fdd�Z�ZS)�
_lazyloaderexzaThis is a LazyLoader except it also follows the _deactivated global and
    the ignore list.
    csjt�d|��%ts|jtvr|j�|�nt��|�Wd�dSWd�dS1s.wYdS)zMake the module load lazily.zdemandimport %sN)r�log�_deactivated�__name__�ignores�loader�exec_module�super)�self�module��	__class__��@/usr/lib/python3/dist-packages/hgdemandimport/demandimportpy3.pyr1s�"�z_lazyloaderex.exec_module)r�
__module__�__qualname__�__doc__r�
__classcell__rrrrr,src@sReZdZdZdZdd�Zdd�Zdd�ZeZd	d
�Z	dd�Z
d
d�Zddd�ZdS)�
LazyFindera2A wrapper around a ``MetaPathFinder`` that makes loaders lazy.

    ``sys.meta_path`` finders have their ``find_spec()`` called to locate a
    module. This returns a ``ModuleSpec`` if found or ``None``. The
    ``ModuleSpec`` has a ``loader`` attribute, which is called to actually
    load a module.

    Our class wraps an existing finder and overloads its ``find_spec()`` to
    replace the ``loader`` with our lazy loader proxy.

    We have to use __getattribute__ to proxy the instance because some meta
    path finders don't support monkeypatching.
    )�_findercCst�|d|�dS�Nr)�object�__setattr__)r�finderrrr�__init__KszLazyFinder.__init__cCsdt�|d�S)Nz<LazyFinder for %r>r)r�__getattribute__�rrrr�__repr__N�zLazyFinder.__repr__cC�tt�|d��Sr)�boolrr!r"rrr�__nonzero__Sr$zLazyFinder.__nonzero__cCs&|dvr
t�||�Stt�|d�|�S)N)r�	find_specr)rr!�getattr�r�namerrrr!XszLazyFinder.__getattribute__cCr%r)�delattrrr!r*rrr�__delattr__^r$zLazyFinder.__delattr__cCstt�|d�||�Sr)�setattrrr!)rr+�valuerrrraszLazyFinder.__setattr__NcCs�t�|d�}z|j}Wnty(|�||�}|durd}ntj�||�}Ynw||||�}|durE|jdurEt	|jdd�rEt
|j�|_|S)Nrr)rr!r(�AttributeError�find_module�	importlib�util�spec_from_loaderr
r)r)r�fullname�path�targetrr(r
�specrrrr(ds"
��
�zLazyFinder.find_spec�N)
rrrr�	__slots__r r#r'�__bool__r!r-rr(rrrrr:srcCs|adSr9)r)�	ignoresetrrr�initsr=cCstotdd�tjD��S)Ncss�|]}t|t�VqdSr9)�
isinstancer)�.0rrrr�	<genexpr>�s�

�zisenabled.<locals>.<genexpr>)r
�any�sys�	meta_pathrrrr�	isenabled�s�rDcCs<g}tjD]}|�t|t�r|jn|�q|tjdd�<dSr9)rBrC�appendr>rr��new_findersrrrr�disable�s
�rHcCsFtsdSg}tjD]}|�t|t�st|�n|�q	|tjdd�<dSr9)�
_supportedrBrCrEr>rrFrrr�enable�s
�rJccs4�t�}|rdazdVW|rdadSdS|rdaw)NTF)rDr
)�
demandenabledrrr�deactivated�s��rL)r�
__future__r�
contextlib�importlib.utilr2rB�rr
�version_inforIr3�
LazyLoaderrrr�setrr=rDrHrJ�contextmanagerrLrrrr�<module>s"B	

https://t.me/RX1948 - 2025