%PDF- %PDF-
Direktori : /usr/share/hplip/base/__pycache__/ |
Current File : //usr/share/hplip/base/__pycache__/pml.cpython-312.pyc |
� = f�i � �� � d dl Z d dlZddl� ddlmZ ddlmZ ddlmZmZm Z m Z mZ d ZdZ dZdZd Zd ZdZdZd ZdZdZdZdZdZdZd ZdZdZdZd ZdZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'dZ(d Z)d Z*dZ+dZ,dZ-dZ.dZ/dZ0dZ1dZ2d Z3dZ4d!Z5 ejl d"� Z7 ejl d#� Z8 ejl d$� Z9d%� Z:d&� Z;d'� Z<d(� Z=d)� Z>e9fd*�Z?e2fd+�Z@d,� ZAd-� ZBd.� ZCd/� ZDd0e-fZEd1e1fZFdZGd ZHdZIdZJdZKd2ZLd ZMd3ZNd4ZOd5ZPd6ZQd!ZRd7ZSd8ZTd9ZUd:ZVd;ZWd<ZXd=ZYd>e*fZZd?Z[d@Z\dAZ]dBe-fZ^dCe+fZ_dDe*fZ`dEZadFZbdGZcdHZddIZedJZfdKZgdLZhdMZidNe-fZjdOe-fZkdPe-fZldQe-fZmdRe+fZndZodZpdZqdSe+fZrdZsdZtdTe+fZudZvdZwdZxd Zyd ZzdUe+fZ{dZ|d Z}dVe.fZ~d Zd2Z�dZ�dZ�dZ�d Z�dZ�dZ�d Z�dWZ�e*Z�dZ�dZ�dZ�d Z�d Z�dZ�dZ�dZ�dXZ�dYZ�dZZ�dZ�d[Z�d\Z�d]Z�dZ�d^Z�d_Z�d`Z�dZ�daZ�dbZ�dcZ�ddZ�e+Z�deZ�e+Z�dfZ�e+Z�dgZ�e-Z�dhZ�e+Z�d Z�dZ�diZ�djZ�dkZ�e.Z�dle*fZ�dZ�dZ�dZ�d Z�d Z�dDe*fZ�dIZ�dme+fZ�dne+fZ�doe+fZ�dpe+fZ�dqe+fZ�dre1fZ�dse+fZ�dte+fZ�due+fZ�dve+fZ�dwe+fZ�dxe+fZ�dye+fZ�dze+fZ�d{e+fZ�d|e+fZ�d1e1fZFdZGd ZHdZIdZJdZKd2ZLd ZMd3ZNd4ZOd5ZPd6ZQd!ZRd7ZSd8ZTd9ZUd:ZVd;ZWd<ZXd=ZYd}e+fZ�d~e*fZ�dZ�dZ�d Z�dZ�dZ�de+fZ�d�e*fZ�dZ�dZ�dZ�d Z�d Z�dZ�d�Z�d�e+fZ�d�Z�d�e+fZ�d�e*fZ�dZ�d�e*fZ�dZ�dZ�dZ�d Z�d Z�e�d�e�d�e�d�e�d�e�d�iZ�d�e*fZ�dZ�dZ�dZ�d Z�d Z�e�d�e�d�e�d�e�d�e�d�iZ�d�e*fZ�dZ�dZ�dZ�d Z�d Z�dZ�dZ�e�d�e�d�e�d�e�d�e�d�e�d�e�d�iZ�d Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d�Z�d��Z d��Zd��Zd��Zd��Zd��Zi e�d��e�d��e�d��e�d��e�d��e�d��e�d��e�d��e�d��e�d��e�d���e d���ed���ed���ed���ed���ed���Zd�e.f�Zd�e+f�Zd�e+f�Z d�e-f�Z d�e-f�Zd�e*f�Zd�e*f�Z d�e*f�Zd�e+f�Zd�e+f�Zd�e+f�Zd�e1f�Zd�e*f�Zd�e*f�Zd�e1f�Zd�e.f�Zd�e+f�Zd�e*f�Zd �Zd�Zd�Zd�Zd�e+f�ZdːZd�e*f�Zd�e.f�Z d�e-f�Z!d�e+f�Z"d�e+f�Z#d�e+f�Z$d�e*f�Z%d�Z&d�Z'd�e+f�Z(d�e+f�Z)d�e*f�Z*d�Z+d�Z,d�Z-d �Z.d �Z/d�e+f�Z0d�e+f�Z1d�e*f�Z2d�Z3d�Z4d�e*f�Z5d�e*f�Z6d�Z7d�Z8dېZ9d�e*f�Z:d�e+f�Z;d�e+f�Z<d�e+f�Z=d�e*f�Z>d�e*f�Z?d�Z@d�ZAd�ZBd �ZCd �ZDd�e*f�ZEd�e+f�ZFd�ZGd�ZHd�ZId �ZJd �ZKd�ZLd�e+f�ZMd�ZNd�ZOd�e+f�ZPd�ZQd�ZRd�ZSd �ZTd �ZUd�ZVd�ZWd�e1f�ZXd�ZYd�ZZd�e+f�Z[d�e+f�Z\d�e+f�Z]d�e*f�Z^d�e+f�Z_d�Z`d�Zad�Zbd�e+f�Zcd�Zdd�Zed�Zfd �Zgd �Zhd�Zid�Zjd�ZkdX�ZldY�ZmdZ�Znd�Zod[�Zpd\�Zqd]�Zrd�Zsd^�Ztd�e.f�Zuy)�� N� )�*)� printable)�unprintable)� to_bytes_utf8� to_unicode�to_bytes_latin�PY3�to_string_latin� � � � � � � � � � � � � � � � � � � � � � � � � i� i �b�h�ic � � dj | j d� D �cg c]$ }t t |j � � � ��& c}� } t j dt | � z t t t | � | � S c c}w )N� �.z>BBB%ss) �join�split�chr�int�strip�struct�pack�len�GET_REQUEST�TYPE_OBJECT_IDENTIFIER)�oidr% s �/usr/share/hplip/base/pml.py�buildPMLGetPacketr7 Z sc � � �'�'�� � �#��?�1�3�s�1�7�7�9�~�&�?� @�C��;�;�y�3�s�8�+�#�.��C��#�'� '�� @s �)Bc � � t | d � S )Nr5 )r7 �r5 s r6 �buildPMLGetPacketExr: a s � ��S��Z�(�(� c �b � t d� j t d� t | ||� g� S )Nr) zPML )r r+ �buildPMLSetPacket)r5 �value� data_types r6 �buildEmbeddedPMLSetPacketr@ d s. � ����!�!�=��#;�=N�s�TY�[d�=e�"f�g�gr; c � � dj | j d� D �cg c]$ }t t |j � � � ��& c}� } |t t t fv r�t j dt |� � }|dkD r3t |� dkD rg|d dk( r_|dd }t |� dkD rL|d dk( r�nBt |� dkD r4|d dk( r,|d dk( r$|dd }t |� dkD r|d dk( r |d dk( r�$t j dt |� z |t |� |� }n�|t k( r5t j d |t j d � t |� � }n�|t k( r3t j dt |� z |t |� dz dd |� }n\|t k( rSt j dt |� z |t |� dj |D �cg c] }t |� �� c}� � }t j dt | � �dt � �d�t t"