HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/qrcode/image/__pycache__/base.cpython-36.opt-1.pyc
3

yb�VW�@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|_|jf|�|_dS)N�)�border�width�box_sizeZ
pixel_size�	new_image�_img)�selfrrr�args�kwargs�r�/usr/lib/python3.6/base.py�__init__s
zBaseImage.__init__cCstd��dS)z9
        Draw a single rectangle of the QR code.
        zBaseImage.drawrectN)�NotImplementedError)r�row�colrrr�drawrectszBaseImage.drawrectcCstd��dS)z&
        Save the image file.
        zBaseImage.saveN)r)r�stream�kindrrr�saveszBaseImage.savecCsD||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.
        )r)rr
rrr�	get_image*szBaseImage.get_imagecCsX|dkr|j}|jp||jk}|r:||�}|s:||jk}|sTtdt|�j|f��|S)z%
        Get the image type.
        NzCannot set %s type to %s)r�
allowed_kinds�
ValueError�type�__name__)rrZ	transformZallowedrrr�
check_kind0s
zBaseImage.check_kind)N)N)
r�
__module__�__qualname__�__doc__rrr
rrrrrrrrrrrs
	rN)�objectrrrrr�<module>s