%PDF- %PDF-
Direktori : /lib/python3/dist-packages/cupshelpers/__pycache__/ |
Current File : //lib/python3/dist-packages/cupshelpers/__pycache__/cupshelpers.cpython-312.pyc |
� Hf6x � �� � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZddlmZ ddlm Z d dl mZ G d� d� Zd� Z d � Z G d � d� Z G d� d e� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zedk( r e� yy)� N� )�_debugprint)�config)�reducec � � e Zd ZddgZd� Zd� Zd� Zd� Zd� Zd� Z d � Z d � Zd� Zd� Z dd�Zdd�Zd� Zd� Zd� Zd� Zd� Zdd�Zdd�Zdd�Zd� Zy )�Printer�options�localc �� � || _ || _ g | _ t |� dkD }d}|r# | j di |�� | j rd}nd}|r| j � d| _ y)z� @param name: printer name @type name: string @param connection: CUPS connection @type connection: CUPS.Connection object @param kw: printer attributes @type kw: dict indexed by string r TFN� )�name� connection� class_members�len�update�is_class� getAttributes�_ppd)�selfr r �kw�have_kw�fetch_attrss �9/usr/lib/python3/dist-packages/cupshelpers/cupshelpers.py�__init__zPrinter.__init__ sg � � �� �$�������r�(�Q�,������D�K�K��2���}�}�"��#������!��� � c �\ � | j � t j | j � y y �N)r �os�unlink�r s r �__del__zPrinter.__del__9 s! � ��9�9� ��I�I�d�i�i� � !r c � � d| j z S )Nz<cupshelpers.Printer "%s">)r r s r �__repr__zPrinter.__repr__= s � �-�� � �9�9r c � � d� }d}t |� }t j D ]f }|j |� s� |||d � }|| j v r�/|dk( rd}t | |t | j t t |� z � � �h y )Nc �"