ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/guppy/etc/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/guppy/etc/__pycache__/Glue.cpython-311.pyc

�

�܋f�6���ddlZddlZddlZGd�de��ZGd�de��ZGd�de��Zd�Zd	�ZGd
�de	��Z
Gd�d
��ZGd�d��ZGd�d��Z
Gd�d��Zd�ZdS)�Nc��eZdZdS)�	GlueErrorN��__name__�
__module__�__qualname__���E/opt/cloudlinux/venv/lib64/python3.11/site-packages/guppy/etc/Glue.pyrr��������Dr
rc��eZdZdS)�RecursionErrorNrr	r
rrr
rr
rc��eZdZdS)�NoSuchAttributeErrorNrr	r
rrrrr
rc�`�	|j}n#t$rYdSwxYwtjd|��S)z� Determine if a module is a package - that means, sub-modules can be imported
    Currently uses that it has a file name that matches '.*__init__.py[co]?$'
    xxx is this portable/future-safe?

    rz.*__init__.py[co]?$)�__file__�AttributeError�re�match)�m�names  r�	ispackagersE����z���������q�q�����
�8�)�4�0�0�0s�
�
�c�"�|r	|r|�d|��S||zS�N�.r	)�first�lasts  r�dotnamers,�������%�%���&�&��t�|�r
c�&�eZdZd�Zd�Zd�Zd�ZdS)�	Interfacec�v�||jd<||jd<||jd<|jD]}t||���dS)N�_share�_owner�_name)�__dict__�preload�getattr)�self�share�ownerrs    r�__init__zInterface.__init__'sT��"'��
�h��"'��
�h��!%��
�g���M�	 �	 �D��D�$�����	 �	 r
c�r�d�|��dzd�d�|D����zS)N�,�=c��g|]}d|z��S)z
self._root.%sr	)�.0rs  r�
<listcomp>z%Interface._import.<locals>.<listcomp>/s��0Z�0Z�0Z�D��4�1G�0Z�0Z�0Zr
)�join)r(�namess  r�_importzInterface._import.s8���x�x�����$�s�x�x�0Z�0Z�TY�0Z�0Z�0Z�'[�'[�[�[r
c�8�|j�||��S�N)r"r'�r(rs  r�__getattr__zInterface.__getattr__1s���{�"�"�4��.�.�.r
c�:�|j�|||��Sr6)r"�setattr)r(r�values   r�__setattr__zInterface.__setattr__4s���{�"�"�4��u�5�5�5r
N)rrrr+r4r8r<r	r
rr r &sS������ � � �\�\�\�/�/�/�6�6�6�6�6r
r c�.�eZdZd�Zd�Zd�Zd�Zdd�ZdS)	�Ownerc�>�||_i|_i|_i|_dSr6)r�galog�salog�intersr7s  rr+zOwner.__init__9s"����	���
���
�����r
c�F�t|d|��}d|j|<dS)Nr$�)rr@)r(�cachers   r�log_getattrzOwner.log_getattr?s'���u�W�~�t�,�,����
�4���r
c��d|j|<dS)NrD)rAr7s  r�log_setattrzOwner.log_setattrCs����
�4���r
c���t|d|��}||jvr=|j}|�t|t��r|}nt}||||��|j|<|j|S)Nr$)rrB�Clamp�
issubclassr )r(rEr)rrJ�NewInterfaces      r�
makeInterfacezOwner.makeInterfaceFsq���u�W�~�t�,�,�����#�#��K�E�� �Z��y�%A�%A� �$���(��!-��e�T�4�!@�!@�D�K����{�5�!�!r
Nrc��|�tj}|sRtd|jz|���t|jd|j�d��dz�|���g}|jD]>}|jD]}||kr|�|��rn� |�|���?|���|D]}td|���dS)NzAttributes used by %s:��filerrDz    )	�sys�stdout�printr�rindexr@�
startswith�append�sort)r(�out�short�complete�a�bs      r�ppzOwner.ppQs����;��*�C��	A��*�T�Y�6�S�A�A�A�A��$�)�4�T�Y�-�-�c�2�2�1�4�4�5�C�@�@�@�@�����	#�	#�A��Z�
#�
#����6�6�a�l�l�1�o�o�6��E������"�"�"���
�
�����	�	�A��&�!�����	�	r
)Nr)rrrr+rFrHrMr]r	r
rr>r>8sd���������������	"�	"�	"������r
r>c��eZdZdZdZd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zejfd
�Zejfd�Zd�ZdS)�Share)�module�parentrrJ�setable�chgable�importedfrom�nowrap�wrapattr�wrapping�data�ownersr�	recursionr&Fc	�P	�|�|}|}n
|jd}||_||_||_||_t|dd��|_t|jt��s"t|�
d�����t|dd��|_t|jt��s"t|�
d�����|�p|jD]h}|�
d��rQ|td��d�}||jvr1||jvr(t|�
|�d|�d	�������it|d
d��}t|t��s"t|�
d�����i|_i}dx}	}
|D�]�}|�d��}t|��d
kr-t|��d
krd}
nd}
t#|
�d|�d����|\}}|���}|�|��}|��|�dd��}|d}|dkr+|	�&t)d���ddi|d��}	|	}n@|dkr+|
�&t)d���ddi|d��}
|
}nt#d���t|��d
kr||ddg}n|d|g}|||<|�d��}|D]H}|���}t|d|zd��}|�t-d|z���||j|<�I���t|dd��|_t|jt��s"t|�
d�����t|dd��}t|t0j��s$|�"t|�
d�����||_d|_i|_i|_|dupt;|��|_||jd<||jd<||jd<d|_t|d d��}|rBd|_t)d���ddi|d��}|D]}t||���|D]
}||jvsJ��||_dS)!N�_root�	_setable_r	z'the _setable_ attribute must be a tuple�	_chgable_z'the _chgable_ attribute must be a tuple�_set_z3 must be in either _setable_ or _chgable_ for _set_z to work�	_imports_z'the _imports_ attribute must be a tuple�:�zToo many�Noz ':' in import directive rrDr�_parent�r$z'Module must begin with _parent or _rootr-�_get_%sz6Cant have both name (=%r) in boht importfrom  and _get�_nowrap_z&the _nowrap_ attribute must be a tuple�
_wrapattr_z)the _wrapattr_ attribute must be a method�_module�	_preload_) rhr`rarrJr'rb�
isinstance�tuple�	TypeError�messagercr%rU�lenrd�split�SyntaxError�strip�getr>rM�
ValueErrorre�types�FunctionTyperfrgrirrjr&)r(r`rarrJ�root�attr�imports�pres�parent_inter�
root_inter�fi�presuf�s�pre�suf�prepa�hdta�hd�hdo�sufs�su�imrfr&�inters                          rr+zShare.__init__isH���>��F��D�D��;�w�'�D���������	���
��u�k�2�6�6����$�,��.�.�	<��D�L�L�9�;�;�<�<�
<��u�k�2�6�6����$�,��.�.�	<��D�L�L�9�;�;�<�<�
<�����
C�
C���?�?�7�+�+�C���G���
�
�.�D��4�<�/�/�D���4L�4L�'����59�T�T�4�4�4�A�)B�)B�C�C�C���%��b�1�1���'�5�)�)�	<��D�L�L�9�;�;�<�<�
<������$(�(��z��)	.�)	.�B��X�X�c�]�]�F��6�{�{�a����v�;�;��?�?�"�A�A��A�!�a�a�a����"L�M�M�M��H�C���)�)�+�+�C��H�H�S�M�M�E��}��y�y��a�(�(���!�W����?�?�#�+�',�R�y�y�'>�'>�$�b�M�6�2�(7�(7��&�C�C��7�]�]�!�)�%*�2�Y�Y�%<�%<�$�b�M�4��&5�&5�
�$�C�C�%�A�C�C�C��t�9�9��>�>� �$�q�'�4�0�E�E� �"�c�N�E�!��S�	��9�9�S�>�>�D��
.�
.���X�X�Z�Z���U�I��N�D�9�9���>�$�P�SU�U�W�W�W�).��!�"�%�%�
.��e�Z��4�4����$�+�u�-�-�	;��D�L�L�8�:�:�;�;�
;��5�,��5�5���(�E�$6�7�7�	>�H�<P��D�L�L�;�=�=�>�>�
>� ��
���
���	�����4��<�9�V�+<�+<���%��	�)��!��	�'��%��	�)������%��b�1�1���	%��D�L��"�I�I�+�+�W�b�M�4��D�D�E��
%�
%����t�$�$�$�$��	%�	%�D��4�9�$�$�$�$�$�����r
c�*�|j�d|j�d|��S)Nz: in z: )�	__class__r)r(�msgs  rr~z
Share.message�s��"&�.�.�.�$�)�)�)�S�S�A�Ar
c�n�|j}|j}|�||||��}||jvr|||<|Sr6)r#r%�getattr2rc)r(r�rr*rE�ds      rr'z
Share.getattr�sB���������M�M�%���t�4�4���t�|�#�#��E�$�K��r
c�P����jr|�||��|�jv�rC	�xjdz
c_	�jr>	���|��}n<#t$r���|��}YnwxYw���|��}na#t$rT|dkr�fd�cY�xjdzc_S|dkr��fd�cY�xjdzc_S���|��}YnwxYw�j	}|�;|�j
vr2�jrJ�	d�_|�||��}d�_n#d�_wxYw|�j|<�xjdzc_n#�xjdzc_wxYw�j|}t|t��r|�|||��}|S)NrD�__repr__c�"��t���Sr6)�str)r�s�r�<lambda>z Share.getattr2.<locals>.<lambda>�s
���s�5�z�z�r
�__str__c�T��d�j�dtt������d�S)N�<z interface at �>)r$�hex�id)r�r(s��rr�z Share.getattr2.<locals>.<lambda>�s(��������AD�R��X�X�����(P�r
r)�has_getattr_logging_enabledrFrhrjr�getattr3r�getattr_package�getattr_modulerfrergr{r_rM)r(r�rEr*r�xrfs``     rr�zShare.getattr2�sC�����+�	+����e�T�*�*�*��t�y� � �
$����!�#���=��~�7�B� $�
�
�e�T� :� :�A�A��3�B�B�B� $� 4� 4�U�D� A� A�A�A�A�B����!�M�M�%��6�6����+�=�=�=��z�)�)�1�1�1�1�1�1� ���!�#������*�*� P� P� P� P� P�P�P����!�#����!�/�/��t�<�<����=���� �=���'�D���,C�,C�#�}�,�,�,�*�()��
�$�H�U�A�t�4�4��()��
�
����
�)�)�)�)�"#��	�$�����!�#��������!�#��������I�d�O���a����	4��#�#�E�1�d�3�3�A��s��E�B�A�B� A>�;B�=A>�>B�E�C6�-E�?C6�E�C6�3E�5C6�6E�D1�)E�1	D:�:
E�E*c��	t|j|��S#t$r td|jj�d|�����wxYw)NzModule z% or its _GLUECLAMP_ has no attribute )r'r`rr)r(r�rs   rr�zShare.getattr_modules_��	-��4�;��-�-�-���	-�	-�	-� �.���$�$�$�d�d�",�-�-�
-�	-���s	��*Ac��	t|�|����}|jr|�||��}n`#t$rS}|jdd|�|��zks|js|dvr�|�||��}Yd}~nd}~wwxYwt|tj	��r|�
||��}|S)NrzNo module named '%s')r�r�)�
__import__�makeNamer`r��ImportError�argsr�r{r��
ModuleType�
makeModule)r(r�rr��excs     rr�zShare.getattr_packages���
	5��4�=�=��.�.�/�/�A��{�
5��'�'��t�4�4�����	+�	+�	+�����7�$�-�-��:M�:M�M�M�M���N�)-�5L�)L�)L���
�
�e�T�*�*�A�A�A�A�A�A�����		+�����a��)�*�*�	)�����4�(�(�A��s�"A�
B�A	B�Bc��|jdkrt|���|j}|�t|���	t	||��}t|tj��rt
j||��}|S#t$rYnwxYw	t	|d|z��}|�
|��}t||d��}t
j||��}|��}t|t��r
|jd}|S#t$rYnwxYw||j
vrX|j
|}|\}	}
}|�1|	}|
�d��}|D]}
t	||
��}�||d<t	||��}|St	|dd��}|�t|���t|d��r|�d	��}|D]z}|���}|�d��}|}|D]&}|���}t	||��}�'	t	||��}|cS#t$rY�wwxYwt|���)
N�
rvrur"rrr�
_GLUEPATH_r�r-)rjrrJrr'r{r�r��
MethodTyper�	makeOwnerr r%rdr��hasattrr�)r(r�rrJr�r�r*�fr�r��ta�pa�tas�at�gpr[�bs�iir\s                   rr�zShare.getattr3s����>�R��� ��&�&�&��
���=�&�t�,�,�,�	���t�$�$�A��!�U�/�0�0�
/��$�Q��.�.���H���	�	�	��D�	����	���	�D� 0�1�1�B��N�N�4�(�(�E��d�E�2�.�.�E�� ��U�+�+�A�����A��!�Y�'�'�
)��J�x�(���H���	�	�	��D�	�����4�$�$�$��%�d�+�E��K�C��R��z����h�h�s�m�m���)�)�B� ��R���B�B���a����D�!�!�A��H�
�U�L�$�
/�
/��
�:�&�t�,�,�,��2�w���	����#���B��	�	�A����	�	�A�������B��B��
$�
$���G�G�I�I���R��^�^���
��B��%�%�������"�
�
�
���
����#�4�(�(�(s5�A5�5
B�B�D�
D�D�H'�'
H4�3H4c�R�t|dd��}t|||j|��S)N�_GLUECLAMP_)r'r_r)r(r`rrJs    rr�zShare.makeModule\s)����
�t�4�4���V�T�6�?�E�:�:�:r
c�,�|jr|j�d|��}|Sr)rr7s  rr�zShare.makeName`s#���9�	/�"�i�i�i���.�D��r
c�b�|�|��}t|��}||j|<|Sr6)r�r>ri)r(r�
owner_namer*s    rr�zShare.makeOwneres1���]�]�4�(�(�
��j�!�!��"'���J���r
c���|jsdStd|jz|���tddt|j��zz|���t	|j�����}|���|D]T}||�d��dzd�}t||���|j|�d����Ut|���dS)NzDependencies found for %srOz-----------------------�-rrD)rY)	rirSrr�list�keysrWrTr])r(rXr��key�lastnames     rr]zShare.ppks����{�	��F�
�)�D�I�5�C�@�@�@�@�
�'��C��	�N�N�(:�:��E�E�E�E��D�K�$�$�&�&�'�'���	�	�����	)�	)�C��3�:�:�c�?�?�1�,�-�-�.�H��(��%�%�%�%��K�����a��(�(�(�(�
�3������r
c���|�|��t|j�����D]2\}}|dvr)t	|t
��r|����3dS)N)rlrt)r]r�rh�itemsr{r_�rpp)r(rX�kr�s    rr�z	Share.rppxsn��������������*�*�+�+�	�	�D�A�q��,�,�,��a��'�'���E�E�G�G�G��	�	r
c��|j}|�td|z���|j}|j}||vr.||vr*||jvr|j||ustd|z���||jvr%|j||ur||vrtd|z���t|d|zd��}|�|||��||j|<||vr||j|<dSdS)Nz;Can not change attribute %r because no _GLUECLAMP_ defined.zICan not change attribute %r,
because it is not in _setable_ or _chgable_.zLCan not change attribute %r,
because it is already set and not in _chgable_.z_set_%s)rJr�rbrcrhr'r%)r(r�rr;rJrbrcr�s        rr:z
Share.setattrs2���
���=��M�PT�T�V�V�
V��,���,������D��$7�$7��d�i�'�'�D�I�d�O�u�,D�,D��0�26�7�8�8�
8��4�9�����4���!=�!=�$�g�BU�BU��3�59�:�;�;�
;��U�I��,�d�
3�
3��
�>��B�u�e������	�$���w���#(�E�N�4� � � ��r
N)rrr�	__slots__r�r+r~r'r�r�r�r�r�r�r�rQrRr]r�r:r	r
rr_r_cs������@�I�#(��j�j�j�XB�B�B����&�&�&�P-�-�-���� ;)�;)�;)�z;�;�;����
����Z������j�����)�)�)�)�)r
r_c��eZdZd�ZdS)�Testc��||_dSr6)r�)r(r�s  rr+z
Test.__init__�s
����	�	�	r
N)rrrr+r	r
rr�r��s#����������r
r�c��eZdZdS)r�Nrr	r
rr�r��rr
r�c�v�tdddd��}td���ddi|d��}|S)z�Create a new guppy Root object.

All functionality in the system may be accessed from this object.
Modules are imported on demand when accessed. Other objects may be
created or imported on demand using Guppy Glue+ directives.
Nrur$)r_r>rM)r)�rs  r�Rootr��s=��
�$��b�$�'�'�E�
�b�	�	����"�
�u�b�9�9�A��Hr
)rrQr��	Exceptionrrrrr�objectr r>r_r�r�r�r	r
r�<module>r�s���	�	�	�	�
�
�
�
�����	�	�	�	�	�	�	�	�	�	�	�	�	�	�Y�	�	�	�	�	�	�	�	�9�	�	�	�
1�
1�
1����6�6�6�6�6��6�6�6�$(�(�(�(�(�(�(�(�Vr)�r)�r)�r)�r)�r)�r)�r)�j	��������
	�	�	�	�	�	�	�	�

�

�

�

�

r

Zerion Mini Shell 1.0