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/__pycache__/query.cpython-39.opt-1.pyc
a

{��d��@sHddlmZmZddlmZddlmZddlmZGdd�de�Z	dS)	�)�ABC�abstractmethod)�Logger)�Iterable�)�
SELinuxPolicyc@sDeZdZUdZeed<eed<edd�dd�Zee	d�d	d
��Z
dS)�PolicyQueryz/Abstract base class for SELinux policy queries.�log�policyN)r
�returncKsR||_t|��dd�D]6}t||d�}t|�r<td�|���t||||�qdS)NT)�reversez0Keyword parameter {0} conflicts with a callable.)r
�sorted�keys�getattr�callable�
ValueError�format�setattr)�selfr
�kwargs�name�attr�r�3/usr/lib64/python3.9/site-packages/setools/query.py�__init__szPolicyQuery.__init__)rcCsdS)z}
        Generator which returns the matches for the query.  This method
        should be overridden by subclasses.
        Nr)rrrr�results#szPolicyQuery.results)�__name__�
__module__�__qualname__�__doc__r�__annotations__rrrrrrrrrr
s
rN)
�abcrrZloggingr�typingrZ	policyreprrrrrr�<module>s