????

Your IP : 18.222.30.59


Current Path : /usr/lib64/python3.9/site-packages/setools/__pycache__/
Upload File :
Current File : //usr/lib64/python3.9/site-packages/setools/__pycache__/query.cpython-39.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