403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/hgdemandimport/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/hgdemandimport/__pycache__/demandimportpy3.cpython-39.pyc
a

�+�b��@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.
    csXt�d|��8ts|jtvr*|j�|�nt��|�Wd�n1sJ0YdS)zMake the module load lazily.zdemandimport %sN)r�log�_deactivated�__name__�ignores�loader�exec_module�super)�self�module��	__class__��D/usr/lib64/python3.9/site-packages/hgdemandimport/demandimportpy3.pyr1sz_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__NszLazyFinder.__repr__cCstt�|d��Sr)�boolrr!r"rrr�__nonzero__SszLazyFinder.__nonzero__cCs&|dvrt�||�Stt�|d�|�S)N)r�	find_specr)rr!�getattr�r�namerrrr!XszLazyFinder.__getattribute__cCstt�|d��Sr)�delattrrr!r(rrr�__delattr__^szLazyFinder.__delattr__cCstt�|d�||�Sr)�setattrrr!)rr)�valuerrrraszLazyFinder.__setattr__NcCs�t�|d�}z
|j}Wn:tyP|�||�}|dur>d}ntj�||�}Yn0||||�}|dur�|jdur�t	|jdd�r�t
|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|adS�N)r)Z	ignoresetrrr�initsr:cCstotdd�tjD��S)Ncss|]}t|t�VqdSr9)�
isinstancer)�.0rrrr�	<genexpr>�szisenabled.<locals>.<genexpr>)r
�any�sys�	meta_pathrrrr�	isenabled�s�rAcCs<g}tjD]}|�t|t�r"|jn|�q
|tjdd�<dSr9)r?r@�appendr;rr�Znew_findersrrrr�disable�s
�rDcCsFtsdSg}tjD] }|�t|t�s,t|�n|�q|tjdd�<dSr9)�
_supportedr?r@rBr;rrCrrr�enable�s
�rFccs0t�}|rdazdVW|r,dan
|r*da0dS)NTF)rAr
)Z
demandenabledrrr�deactivated�s�rG)rZ
__future__r�
contextlib�importlib.utilr0r?�rr
�version_inforEr1�
LazyLoaderrrr�setrr:rArDrF�contextmanagerrGrrrr�<module>s B	

Youez - 2016 - github.com/yon3zu
LinuXploit