$81 GRAYBYTE WORDPRESS FILE MANAGER $81

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python310/lib64/python3.10/importlib/__pycache__/

HOME
Current File : /opt/alt/python310/lib64/python3.10/importlib/__pycache__//util.cpython-310.opt-1.pyc
o

���h�,�@s*dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddlm
Z
dd	lmZdd
lmZddlm
Z
ddlmZd
dlmZd
dlZd
dlZd
dlZd
dlZd
dlZdd�Zdd�Zd$dd�Zd$dd�Zedd��Zdd�Zdd�Zdd�ZGd d!�d!ej�ZGd"d#�d#e�Z dS)%z-Utility code for constructing importers, etc.�)�Loader)�module_from_spec)�
_resolve_name)�spec_from_loader)�
_find_spec)�MAGIC_NUMBER)�_RAW_MAGIC_NUMBER)�cache_from_source)�
decode_source)�source_from_cache)�spec_from_file_location�)�contextmanagerNcCst�t|�S)zBReturn the hash of *source_bytes* as used in hash-based pyc files.)�_imp�source_hashr)�source_bytes�r�5/opt/alt/python310/lib64/python3.10/importlib/util.pyrsrcCs\|�d�s|S|stdt|��d���d}|D]}|dkrn|d7}qt||d�||�S)z2Resolve a relative module name to an absolute one.�.zno package specified for z% (required for relative module names)r
rN)�
startswith�ImportError�reprr)�name�package�level�	characterrrr�resolve_names

rcCsn|tjvr
t||�Stj|}|durdSz|j}Wnty)td�|��d�w|dur5td�|���|S)a�Return the spec for the specified module.

    First, sys.modules is checked to see if the module was already imported. If
    so, then sys.modules[name].__spec__ is returned. If that happens to be
    set to None, then ValueError is raised. If the module is not in
    sys.modules, then sys.meta_path is searched for a suitable spec with the
    value of 'path' given to the finders. None is returned if no spec could
    be found.

    Dotted names do not have their parent packages implicitly imported. You will
    most likely need to explicitly import all parent packages in the proper
    order for a submodule to get the correct spec.

    N�{}.__spec__ is not set�{}.__spec__ is None)�sys�modulesr�__spec__�AttributeError�
ValueError�format)r�path�module�specrrr�_find_spec_from_path*s



�r(c	
Cs�|�d�r
t||�n|}|tjvrG|�d�d}|r@t|dgd�}z|j}Wnty?}z
td|�d|��|d�|�d}~wwd}t	||�Stj|}|durRdSz|j
}Wntyftd	�|��d�w|durrtd
�|���|S)a�Return the spec for the specified module.

    First, sys.modules is checked to see if the module was already imported. If
    so, then sys.modules[name].__spec__ is returned. If that happens to be
    set to None, then ValueError is raised. If the module is not in
    sys.modules, then sys.meta_path is searched for a suitable spec with the
    value of 'path' given to the finders. None is returned if no spec could
    be found.

    If the name is for submodule (contains a dot), the parent module is
    automatically imported.

    The name and package arguments work the same as importlib.import_module().
    In other words, relative module names (with leading dots) work.

    rr
�__path__)�fromlistz __path__ attribute not found on z while trying to find )rNrr)
rrrr �
rpartition�
__import__r)r"�ModuleNotFoundErrorrr!r#r$)	rr�fullname�parent_name�parent�parent_path�er&r'rrr�	find_specIs>

�����


�r3ccs��|tjv}tj�|�}|stt�|�}d|_|tj|<z-z|VWnty=|s;ztj|=Wn	ty:YnwYnwWd|_dSWd|_dSd|_w)NTF)rr �get�type�__initializing__�	Exception�KeyError)r�	is_reloadr&rrr�_module_to_loadvs,�


����
�r:c�t����fdd��}|S)zOSet __package__ on the returned module.

    This function is deprecated.

    csVtjdtdd��|i|��}t|dd�dur)|j|_t|d�s)|j�d�d|_|S)N�kThe import system now takes care of this automatically; this decorator is slated for removal in Python 3.12���
stacklevel�__package__r)rr
)�warnings�warn�DeprecationWarning�getattr�__name__r@�hasattrr+)�args�kwargsr&��fxnrr�set_package_wrapper�s�
z(set_package.<locals>.set_package_wrapper��	functools�wraps)rJrKrrIr�set_package�s
rOcr;)zNSet __loader__ on the returned module.

    This function is deprecated.

    cs@tjdtdd��|g|�Ri|��}t|dd�dur||_|S)Nr<r=r>�
__loader__)rArBrCrDrP)�selfrGrHr&rIrr�set_loader_wrapper�s�z&set_loader.<locals>.set_loader_wrapperrL)rJrRrrIr�
set_loader�srScs*tjdtdd�t����fdd��}|S)a*Decorator to handle selecting the proper module for loaders.

    The decorated function is passed the module to use instead of the module
    name. The module passed in to the function is either from sys.modules if
    it already exists or is a new module. If the module is new, then __name__
    is set the first argument to the method, __loader__ is set to self, and
    __package__ is set accordingly (if self.is_package() is defined) will be set
    before it is passed to the decorated function (if self.is_package() does
    not work for the module it will be set post-load).

    If an exception is raised and the decorator created the module it is
    subsequently removed from sys.modules.

    The decorator assumes that the decorated function takes the module name as
    the second argument.

    r<r=r>c
s�t|��8}||_z|�|�}WnttfyYnw|r!||_n|�d�d|_�||g|�Ri|��Wd�S1s?wYdS)Nrr
)r:rP�
is_packagerr"r@r+)rQr.rGrHr&rTrIrr�module_for_loader_wrapper�s
�$�z4module_for_loader.<locals>.module_for_loader_wrapper)rArBrCrMrN)rJrUrrIr�module_for_loader�s�rVc@s eZdZdZdd�Zdd�ZdS)�_LazyModulezKA subclass of the module type which triggers loading upon attribute access.cCs�tj|_|jj}|jjd}|j}i}|��D]\}}||vr$|||<qt||�t||�kr4|||<q|jj	�
|�|tjvrTt|�ttj|�krTt
d|�d���|j�|�t||�S)z8Trigger the load of the module and return the attribute.�__dict__zmodule object for z. substituted in sys.modules during a lazy load)�types�
ModuleType�	__class__r!r�loader_staterX�items�id�loader�exec_modulerr r#�updaterD)rQ�attr�
original_name�
attrs_then�	attrs_now�
attrs_updated�key�valuerrr�__getattribute__�s"
�

z_LazyModule.__getattribute__cCs|�|�t||�dS)z/Trigger the load and then perform the deletion.N)ri�delattr)rQrbrrr�__delattr__s
z_LazyModule.__delattr__N)rE�
__module__�__qualname__�__doc__rirkrrrrrW�s"rWc@s@eZdZdZedd��Zedd��Zdd�Zdd	�Z	d
d�Z
dS)
�
LazyLoaderzKA loader that creates a module which defers loading until attribute access.cCst|d�s	td��dS)Nr`z loader must define exec_module())rF�	TypeError)r_rrr�__check_eager_loaders
�zLazyLoader.__check_eager_loadercs������fdd�S)z>Construct a callable which returns the eager loader made lazy.cs��|i|���S�Nr)rGrH��clsr_rr�<lambda>sz$LazyLoader.factory.<locals>.<lambda>)�_LazyLoader__check_eager_loaderrsrrsr�factorys
zLazyLoader.factorycCs|�|�||_dSrr)rvr_)rQr_rrr�__init__s

zLazyLoader.__init__cCs|j�|�Srr)r_�
create_module)rQr'rrrryszLazyLoader.create_modulecCs@|j|j_|j|_i}|j��|d<|j|d<||j_t|_dS)zMake the module load lazily.rXr[N)r_r!rPrX�copyr[r\rW)rQr&r\rrrr`"s


zLazyLoader.exec_moduleN)rErlrmrn�staticmethodrv�classmethodrwrxryr`rrrrros

rorr)!rn�_abcr�
_bootstraprrrr�_bootstrap_externalrrr	r
rr�
contextlibrrrMrrYrArrr(r3r:rOrSrVrZrWrorrrr�<module>s:

-
(.


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.36 AM
root / linksafe
0755
__init__.cpython-310.opt-1.pyc
3.731 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
__init__.cpython-310.opt-2.pyc
3.088 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.pyc
3.731 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_abc.cpython-310.opt-1.pyc
1.94 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_abc.cpython-310.opt-2.pyc
1.032 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_abc.cpython-310.pyc
1.94 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_adapters.cpython-310.opt-1.pyc
3.632 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_adapters.cpython-310.opt-2.pyc
3.234 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_adapters.cpython-310.pyc
3.632 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_bootstrap.cpython-310.opt-1.pyc
29.422 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_bootstrap.cpython-310.opt-2.pyc
22.947 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_bootstrap.cpython-310.pyc
29.438 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_bootstrap_external.cpython-310.opt-1.pyc
43.054 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_bootstrap_external.cpython-310.opt-2.pyc
32.714 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_bootstrap_external.cpython-310.pyc
43.29 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_common.cpython-310.opt-1.pyc
2.913 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
_common.cpython-310.opt-2.pyc
2.344 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_common.cpython-310.pyc
2.913 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
abc.cpython-310.opt-1.pyc
15.534 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
abc.cpython-310.opt-2.pyc
9.237 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
abc.cpython-310.pyc
15.534 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
machinery.cpython-310.opt-1.pyc
0.938 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
machinery.cpython-310.opt-2.pyc
0.809 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
machinery.cpython-310.pyc
0.938 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
readers.cpython-310.opt-1.pyc
5.076 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
readers.cpython-310.opt-2.pyc
4.757 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
readers.cpython-310.pyc
5.076 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
resources.cpython-310.opt-1.pyc
5.259 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
resources.cpython-310.opt-2.pyc
4.288 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
resources.cpython-310.pyc
5.259 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
util.cpython-310.opt-1.pyc
9.126 KB
9 Jan 2026 2.05 PM
root / linksafe
0644
util.cpython-310.opt-2.pyc
6.377 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.pyc
9.126 KB
9 Jan 2026 2.05 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF