3 �^� � @ s$ d dl mZmZ G dd� de�ZdS )� )�ABC�abstractmethodc @ s$ e Zd ZdZdd� Zedd� �ZdS )�PolicyQueryz/Abstract base class for SELinux policy queries.c K sV || _ xJt|j� dd�D ]6}t| |d �}t|�r>tdj|���t| ||| � qW d S )NT)�reversez0Keyword parameter {0} conflicts with a callable.)�policy�sorted�keys�getattr�callable� ValueError�format�setattr)�selfr �kwargs�name�attr� r �/usr/lib64/python3.6/query.py�__init__ s zPolicyQuery.__init__c C s dS )z} Generator which returns the matches for the query. This method should be overridden by subclasses. Nr )r r r r �results* s zPolicyQuery.resultsN)�__name__� __module__�__qualname__�__doc__r r r r r r r r s r N)�abcr r r r r r r �<module> s