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: //usr/lib/python3.6/site-packages/qrcode/__pycache__/console_scripts.cpython-36.opt-1.pyc
3

Nlagz�@s�dZddlZddlZddlZddlZejjd�r@ddlZej�ddddd	d
�Z	ej
ejejej
d�Zejdd�fd
d�Zedkr�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�H�c
Cs�tjtj�d�}|jddjdjttj	����d�|jdt
dd�|jd	d
ttj	��ddd
�|j|�\}}t
jt|jd�}|jr�tj|j|j�}d|kr�|jd�|jdd�\}}t|ig|g�}t||�}nd}|r�|d}nttjdtj�}	|	j�}|jdk�r|j|�n|j||jd�|dk�rPtjtjj���rP|jdd�dS|j|d�}
tjj �ttjdd�}|�s�tj!dk�r�ddl"}|j#tjj�tj$�tj}|
j%|�dS)N)Zusagez	--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-correctionZchoicerz^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 pathrr�buffer)�optimizeT)Ztty)�
image_factoryZwin32)&�optparseZOptionParser�__doc__�stripZ
add_option�format�join�sorted�default_factories�keys�intr
�
parse_args�qrcodeZQRCode�factory�get�error�rsplit�
__import__�getattr�sys�stdin�readrZadd_data�os�isatty�stdout�filenoZprint_asciiZ
make_image�flush�platform�msvcrtZsetmodeZO_BINARYZsave)
�args�parserZoptsZqr�module�nameZimpr�dataZstdin_bufferZimgZ
stdout_bufferr,�r2�%/usr/lib/python3.6/console_scripts.py�main sP


r4�__main__)rr)rr#rr&rr+�
startswithZcoloramaZinitrZERROR_CORRECT_LZERROR_CORRECT_MZERROR_CORRECT_QZERROR_CORRECT_Hr
�argvr4�__name__r2r2r2r3�<module>s&
>