Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /opt/hc_python/lib64/python3.12/site-packages/mako/ext/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/hc_python/lib64/python3.12/site-packages/mako/ext/__pycache__/babelplugin.cpython-312.pyc
�

���g+��<�dZddlmZddlmZGd�de�Zd�Zy)zEgettext message extraction via Babel: https://pypi.org/project/Babel/�)�extract_python)�MessageExtractorc�*��eZdZ�fd�Zd�Zd�Z�xZS)�BabelMakoExtractorc���||_||_dj|�|jd|jdd��d�|_t
�|��y)N� �input_encoding�encoding)�comment-tagsr
)�keywords�options�join�get�config�super�__init__)�selfr�comment_tagsr
�	__class__s    ��C/opt/hc_python/lib/python3.12/site-packages/mako/ext/babelplugin.pyrzBabelMakoExtractor.__init__sO��� ��
�����H�H�\�2���� �'�+�+�j�$�"?��
���	����c�$�|j|�S)N)�process_file)r�fileobjs  r�__call__zBabelMakoExtractor.__call__s��� � ��)�)rc#�K�|jd}t||j||j�D]\}}}}||dz
z||||zf���y�w)Nr�)rrrr
)	r�code�code_lineno�translator_stringsr�lineno�funcname�messages�python_translator_commentss	         r�process_pythonz!BabelMakoExtractor.process_pythonsj�����{�{�>�2���D�$�-�-��t�|�|�
L�
����&��v��z�*���"�%?�?�	�
�M�s�AA)�__name__�
__module__�__qualname__rrr%�
__classcell__)rs@rrr
s���	�*�
rrc#�JK�t|||�}||�Ed{���y7��w)aExtract messages from Mako templates.

    :param fileobj: the file-like object the messages should be extracted from
    :param keywords: a list of keywords (i.e. function names) that should be
                     recognized as translation functions
    :param comment_tags: a list of translator tags to search for and include
                         in the results
    :param options: a dictionary of additional options (optional)
    :return: an iterator over ``(lineno, funcname, message, comments)`` tuples
    :rtype: ``iterator``
    N)r)rrrr
�	extractors     r�extractr,,s$����#�8�\�7�C�I���!�!�!�s�#�!�#N)�__doc__�babel.messages.extractr�mako.ext.extractrrr,�rr�<module>r1s#��L�1�-��)��>
"r

ZeroDay Forums Mini