%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/system-config-printer/xml/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/system-config-printer/xml/__pycache__/validate.cpython-312.pyc

�

Hf�	���ddlZddlZddlZGd�d�ZddlZddlZej
ejddd�\ZZ	e
e	�dkrEejjejd�Zejjed�gZ	dZe	D]Zee�Zej#�r�dZ�ej$e�y)�Nc��eZdZd�Zd�Zy)�	Validatorc��||_y)N)�	_filename)�self�filenames  �0/usr/share/system-config-printer/xml/validate.py�__init__zValidator.__init__s	��!���c��|j}td|z�tjjjt
|�j��}t|�\}}d}t�}t|�D]$}|jd�}|j|��&t|�D]�}	g}
|	jd�}|�|
jt|��|	jd�}|�|
jt|��|
D]@}|jj�}
t!j"||
�}|t|�z}�B��|D]"}d}td|zt$j&���$|S)	Nz
Validating %sT�name�drivers�	blacklistFz"*** Driver type "%s" is never used)�file)r�print�xml�etree�ElementTree�XML�open�read�list�set�get�add�find�extend�text�strip�fnmatch�filter�sys�stderr)rr�preferreddrivers�drivertypes�preferenceorder�	validates�names�
drivertyper
�printer�typesrr�pattern�matchess               r	�validatezValidator.validate"sd���>�>��
���)�*��9�9�0�0�4�4�d�H�o�6J�6J�6M�N��)-�.>�)?�&��o��	�����{�+�	�J��>�>�6�*�D��I�I�t��	��O�,�
	'�G��E��l�l�I�.�G��"����d�7�m�,����k�2�I��$����d�9�o�.�#�
'�
�$�/�/�/�/�2��!�.�.�%��9����g��&��
'�
	'��	9�D��I��9�!%�&�-0�Z�Z�
9�	9�
�rN)�__name__�
__module__�__qualname__r
r.�rr	rrs��"� rr��zpreferreddrivers.xml)r r"�xml.etree.ElementTreerr�getopt�os�argv�opts�args�len�path�dirname�join�exitcoder�	validatorr.�exitr2rr	�<module>rBs���4�
��$�$�L�	�
�V�]�]�C�H�H�Q�R�L�"�
-�
��d���:��>��g�g�o�o�s�x�x��{�+�G��G�G�L�L�'�#9�:�;�D�����H��8�$�I���� ����
	����(�r

Zerion Mini Shell 1.0