Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/site-packages/mako/ext/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/site-packages/mako/ext/__pycache__/babelplugin.cpython-38.pyc
U

O��g+�@s8dZddlmZddlmZGdd�de�Zdd�ZdS)	zEgettext message extraction via Babel: https://pypi.org/project/Babel/�)�extract_python)�MessageExtractorcs,eZdZ�fdd�Zdd�Zdd�Z�ZS)�BabelMakoExtractorcs<||_||_d�|�|�d|�dd��d�|_t���dS)N� Zinput_encoding�encoding)�comment-tagsr)�keywords�options�join�get�config�super�__init__)�selfr�comment_tagsr	��	__class__��A/opt/cppython/lib/python3.8/site-packages/mako/ext/babelplugin.pyrs
��zBabelMakoExtractor.__init__cCs
|�|�S)N)Zprocess_file)r�fileobjrrr�__call__szBabelMakoExtractor.__call__c	csH|jd}t||j||j�D]&\}}}}||d||||fVqdS)Nr�)rrrr	)	r�codeZcode_linenoZtranslator_stringsr�lineno�funcname�messagesZpython_translator_commentsrrr�process_pythons
�
�z!BabelMakoExtractor.process_python)�__name__�
__module__�__qualname__rrr�
__classcell__rrrrr
srccst|||�}||�EdHdS)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)rrrr	Z	extractorrrr�extract,sr!N)�__doc__Zbabel.messages.extractrZmako.ext.extractrrr!rrrr�<module>s

F1le Man4ger