HEX
Server: LiteSpeed
System: Linux shams.tasjeel.ae 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: infowars (1469)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //usr/lib/python3.9/site-packages/qrcode/image/__pycache__/base.cpython-39.opt-1.pyc
a

��;\W�@sGdd�de�ZdS)c@sTeZdZdZdZdZdd�Zdd�Zddd�Zd	d
�Z	dd�Z
d
d�Zddd�ZdS)�	BaseImagez)
    Base QRCode image output class.
    NcOs@||_||_||_|j|jd|j|_|jfi|��|_dS)N�)�border�width�box_sizeZ
pixel_size�	new_image�_img)�selfrrr�args�kwargs�r�5/usr/lib/python3.9/site-packages/qrcode/image/base.py�__init__s
zBaseImage.__init__cCstd��dS)z9
        Draw a single rectangle of the QR code.
        �BaseImage.drawrectN��NotImplementedError)r�row�colrrr�drawrectsrcCstd��dS)z&
        Save the image file.
        �BaseImage.saveNr)r�stream�kindrrr�savesrcCsD||j|j}||j|j}||f||jd||jdfgS)z�
        A helper method for pixel-based image generators that specifies the
        four pixel coordinates for a single rect.
        �)rr)rrr�x�yrrr�	pixel_boxszBaseImage.pixel_boxcKsdS)zT
        Build the image class. Subclasses should return the class created.
        Nr�rr
rrrr$szBaseImage.new_imagecKs|jS)z@
        Return the image class for further processing.
        )rrrrr�	get_image*szBaseImage.get_imagecCsX|dur|j}|jp||jv}|r:||�}|s:||jv}|sTtdt|�j|f��|S)z%
        Get the image type.
        NzCannot set %s type to %s)r�
allowed_kinds�
ValueError�type�__name__)rrZ	transform�allowedrrr�
check_kind0s
�zBaseImage.check_kind)N)N)
r!�
__module__�__qualname__�__doc__rrr
rrrrrr#rrrrrs
	rN)�objectrrrrr�<module>�