%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/hplip/base/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/hplip/base/__pycache__/local.cpython-312.pyc

�

=	fo	��^�ddlZddlZddl�ddlZddlmZmZddlmZddl	m
Z
ddlZdd�Zy)	�N�)�*)�Popen�PIPE)�utils)�to_string_utf8c�Z�i}tjd�dk(rtjd�|St	gd�t
��}t
|j�d�}|j�D]�}|jd�s�|jd�}|d	d
k(s�/|ddk(s�8	ddd
�}|djd�}|D]"}	|	jdd	�\}
}|
dk(s�||d<�$t|d�}|jdd�jdd�jdd�jdd�jdd�}
d|
zdz}tj|�||d<|}��tjd t!|�z�|S#tj$rY��8wxYw)!N�avahi-browse�zAvahi-browse is not installed)r
z-kprtz	_ipp._tcp)�stdoutr�=�;r�lo��IPv4)�printer_name�printer_uri�	z" "�usb_MDLr�z\032z%20z\091z%5Bz\093z%5Dz\040�(z\041�)zipp://z._ipp._tcp.local/rzFound %d devices)r�which�log�errorrrr�communicate�
splitlines�
startswith�split�str�replace�debug�socket�gaierror�len)�ttl�timeout�
found_devices�p�output�line�bits�y�details�item�key�value�unformattedString�formattedString�	final_uris               �/usr/share/hplip/base/local.py�detectLocalDevicesr6 s�����	�K�K���2�%��)�)�+�,�	���1�$�?��
������+�
,��
�
�
�
 �
�T�	�_�_�S��
�*�*�S�/�4�
�1�g��o�$�q�'�V�+�
��2�	.�Q��A�w�}�}�U�#�W�� ���:�:�c�1�%�j�c�5�	�	�	��q��� ��T�!�W���(�0�0���?�G�G��PU�V�^�^�_f�gl�m�u�u�v}�B�C�K�K�LS�TW�X�_��?�*�,?�?�Y��Y�Y�y�� �Q�}���]�'
�,�����M� 2�2�3����	�?�?�
�	�
�s�*8F�#BF�F*�)F*)��
)
�sys�os�gr#�
subprocessrrrr�sixextr�rer6��r5�<module>rAs$��,�	��
�"��#�	�#r@

Zerion Mini Shell 1.0