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: //lib/python3.9/site-packages/qrcode/__pycache__/console_scripts.cpython-39.pyc
a

'�b
�@s�dZddlZddlZddlZddlZej�d�r@ddlZe��dddddd	�Z	ej
ejejej
d
�Zddd�Zed
kr~e�dS)z�
qr - Convert stdin (or the first argument) to a QR Code.

When stdout is a tty the QR Code is printed to the terminal and when stdout is
a pipe to a file an image is written. The default image format is PNG.
�N)�win�cygwinzqrcode.image.pil.PilImagezqrcode.image.pure.PymagingImagezqrcode.image.svg.SvgImagez!qrcode.image.svg.SvgFragmentImagezqrcode.image.svg.SvgPathImage)ZpilZpymagingZsvgzsvg-fragmentzsvg-path)�L�M�Q�Hc	Cs�|durtjdd�}ddlm}|d�j}tjt��|d�}|j	dd�
d�tt
�����d	�|j	d
tdd�|j	d
dtt���ddd�|�|�\}}tjt|jd�}|j�rt
�|j|j�}d|vr�|�d�|�dd�\}}t|ig|g�}t||�}	nd}	|�r|d}
nttjdtj�}|��}
|jdu�rF|�|
�n|j|
|jd�|	du�r�t�tj �!���r�|j"dd�dS|j#|	d�}tj �$�ttj dd�}
|
�s�tj%dk�r�ddl&}|�'tj �!�tj(�tj }
|�)|
�dS)N�r)�get_distribution�qrcode)�usage�versionz	--factoryz�Full python path to the image factory class to create the image with. You can use the following shortcuts to the built-in image factory classes: {0}.z, )�helpz
--optimizez�Optimize the data by looking for chunks of at least this many characters that could use a more efficient encoding method. Use 0 to turn off chunk optimization.)�typer
z--error-correction�choicerz^The error correction level to use. Choices are L (7%), M (15%, default), Q (25%), and H (30%).)r�choices�defaultr
)�error_correction�.z+The image factory is not a full python path�buffer)�optimizeT)Ztty)�
image_factory�win32)*�sys�argvZ
pkg_resourcesr	r�optparseZOptionParser�__doc__�stripZ
add_option�format�join�sorted�default_factories�keys�intr�
parse_argsr
ZQRCode�factory�get�error�rsplit�
__import__�getattr�stdin�readrZadd_data�os�isatty�stdout�filenoZprint_asciiZ
make_image�flush�platform�msvcrtZsetmodeZO_BINARYZsave)�argsr	r�parserZoptsZqr�module�name�impr�dataZstdin_bufferZimgZ
stdout_bufferr2�r9�:/usr/lib/python3.9/site-packages/qrcode/console_scripts.py�main sb
�����


r;�__main__)N)rrrr,r
r1�
startswithZcolorama�initr ZERROR_CORRECT_LZERROR_CORRECT_MZERROR_CORRECT_QZERROR_CORRECT_Hrr;�__name__r9r9r9r:�<module>s*�	�
B