HEX
Server: Apache
System: Linux insrv.serversdaddy.com 5.14.0-362.24.2.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Mar 30 14:11:54 EDT 2024 x86_64
User: jsaha (1066)
PHP: 8.3.6
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/python3.9/site-packages/setools/diff/__pycache__/conditional.cpython-39.pyc
a

{��d��@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