HEX
Server: Apache
System: Linux box5154.bluehost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: almiraso (1849)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib64/python3.9/site-packages/setools/__pycache__/query.cpython-39.opt-1.pyc
a

q�qe��@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