HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //opt/cloudlinux/venv/lib64/python3.11/site-packages/mako/__pycache__/cmd.cpython-311.pyc
�

&�}������ddlmZddlmZddlmZddlZddlmZddlm	Z	ddl
mZd�Zd	�Z
dd
�Zedkre��dSdS)
�)�ArgumentParser)�dirname)�isfileN)�
exceptions)�TemplateLookup)�Templatec�>�d|vr|dfS|�dd��S)N�=��)�split)�vars �Y/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/mako/cmd.py�varsplitrs)��
�#�~�~��R�y���9�9�S�!����c��tj�tj�������tjd��dS)Nr)�sys�stderr�writer�text_error_template�render�exit�rr�_exitrs>���J���Z�3�5�5�<�<�>�>�?�?�?��H�Q�K�K�K�K�Krc�0�t��}|�dgdd���|�dgdd���|�ddd�	��|�d
dd�	��|�dd
d���|�|��}|j}|j}|jdkr^|jpdg}t|��}	ttj
���||���}n�#t��YnzxYw|j}t|��std|z���|jpt|��g}t|��}	t|||���}n#t��YnxYwt!d�|jD����}		|jdi|	��}
|r't'|d|����|
��dStj�|
��dS#t��YdSxYw)Nz--var�appendz5variable (can be used multiple times, use name=value))�default�action�helpz--template-dirz�Directory to use for template lookup (multiple directories may be provided). If not given then if the template is read from stdin, the value defaults to be the current directory, otherwise it defaults to be the parent directory of the file provided.z--output-encodingzforce output encoding)rrz
--output-filez6Write to file upon successful render instead of stdout�input�?�-)�nargsr�.)�lookup�output_encodingzerror: can't find %s)�filenamer%r&c3�4K�|]}t|��V��dS�N)r)�.0rs  r�	<genexpr>zcmdline.<locals>.<genexpr>Ws(����
3�
3��h�s�m�m�
3�
3�
3�
3�
3�
3r�wt)�encodingr)r�add_argument�
parse_argsr&�output_filer �template_dirrrr�stdin�readrr�
SystemExitr�dictrr�openr�stdout)�argv�parser�optionsr&r0�lookup_dirsr%�templater'�kw�rendereds           r�cmdliner?s���
�
�
�F�
������
D�	����������1�	�	�	�	�����T�0G����������
E�����
����s�C��8�8�8�����%�%�G��-�O��%�K��}�����*�3�s�e����,�,��	���	��� � �� /����H�H��
	��G�G�G�G�G�����=���h���	@��3�h�>�?�?�?��*�A�w�x�/@�/@�.A����,�,��	��!�� /����H�H��
	��G�G�G�G�G����	
�
3�
3�w�{�
3�
3�
3�	3�	3�B�'�"�8�?�(�(�R�(�(���	'���d�_�=�=�=�C�C�H�M�M�M�M�M��J���X�&�&�&�&�&��
�
���������s$�.D�D�$E7�7F	�+
H�H�__main__r))�argparser�os.pathrrr�makor�mako.lookupr�
mako.templaterrrr?�__name__rrr�<module>rGs���$�#�#�#�#�#�������������
�
�
�
�������&�&�&�&�&�&�"�"�"�"�"�"�������
E'�E'�E'�E'�P�z����G�I�I�I�I�I��r