????

Your IP : 3.137.169.218


Current Path : /usr/lib64/python3.9/site-packages/setools/diff/__pycache__/
Upload File :
Current File : //usr/lib64/python3.9/site-packages/setools/diff/__pycache__/conditional.cpython-39.opt-1.pyc

a

q�qe��@srUddlmZddlmZddlmZddlmZee�Z	eedfe
d<edd	�d
d�ZGdd�dee�Zd
S)�)�defaultdict�)�Conditional�)�Wrapper)�Cache�ConditionalWrapper�_cond_cache��cond�returncCsBzt|j|WSty<t|�}|t|j|<|YS0dS)z�
    Wrap type attributes from the specified policy.

    This caches results to prevent duplicate wrapper
    objects in memory.
    N)r	Zpolicy�KeyErrorr)r�a�r�>/usr/lib64/python3.9/site-packages/setools/diff/conditional.py�conditional_wrapper_factorysrc@s<eZdZdZdZedd�dd�Zdd�Zd	d
�Zdd�Z	dS)
rzHWrap conditional policy expressions to allow comparisons by truth table.�truth_tableNr
cCs||_|��|_dS�N)�originr)�selfrrrr�__init__&szConditionalWrapper.__init__cCs
t|j�Sr)�hashr)rrrr�__hash__*szConditionalWrapper.__hash__cCs|j|jkSr)r�r�otherrrr�__eq__-szConditionalWrapper.__eq__cCst|j�t|�kSr)�strrrrrr�__lt__0szConditionalWrapper.__lt__)
�__name__�
__module__�__qualname__�__doc__�	__slots__rrrrrrrrrr sN)
�collectionsrZ	policyrepr�
differencer�typingr�dictr	�__annotations__rrrrrr�<module>s