Hacked By AnonymousFox
�
�܋f* � � � d Z ddlZddlZej d dk ZerefZdZn efZddl mZ i Z
da ej � � Z
d� Zd� Zd� Zd � Zd
� Z G d� d� � Z G d
� d� � Z G d� d� � Zd� ZdS )z�This module implements a post import hook mechanism styled after what is
described in PEP-369. Note that it doesn't cope with modules being reloaded.
� N� )� find_specFc � � � � fd�}|S )Nc �� �� �� d� � \ }}|� d� � }t |� � t j | }|D ]}t ||� � }� || � � S )N�:�.)�split�
__import__�sys�modules�getattr)�module�module_name�function�attrs�callback�attr�names ��a/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/wrapt/importer.py�import_hookz4_create_import_hook_from_string.<locals>.import_hook$ sr �� � $�
�
�3�����X����s�#�#���;�����;�{�+��� /� /�D��x��.�.�H�H��x����� � )r r s ` r �_create_import_hook_from_stringr # s$ �� � � � � � � �r c � � t | t � � rt | � � } t 5 t s.dat
j � dt � � � � t
j �
|d � � }|�.t � |g � � �
| � � d d d � � n# 1 swxY w Y |�
| |� � d S d S )NTr )�
isinstance�string_typesr �_post_import_hooks_lock�_post_import_hooks_initr � meta_path�insert�ImportHookFinderr �get�_post_import_hooks�
setdefault�append)�hookr r s r �register_post_import_hookr'