%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python37/lib/python3.7/site-packages/mako/ext/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python37/lib/python3.7/site-packages/mako/ext/__pycache__/babelplugin.cpython-37.pyc

B

�C]Z�@s8dZddlmZddlmZGdd�de�Zdd�ZdS)	z@gettext message extraction via Babel: http://babel.edgewall.org/�)�extract_python)�MessageExtractorcs,eZdZ�fdd�Zdd�Zdd�Z�ZS)�BabelMakoExtractorcs@||_||_d�|�|�d|�dd��d�|_tt|���dS)N� Zinput_encoding�encoding)zcomment-tagsr)�keywords�options�join�get�config�superr�__init__)�selfr�comment_tagsr)�	__class__��E/opt/alt/python37/lib/python3.7/site-packages/mako/ext/babelplugin.pyr
szBabelMakoExtractor.__init__cCs
|�|�S)N)Zprocess_file)r�fileobjrrr�__call__szBabelMakoExtractor.__call__c	csL|jd}x<t||j||j�D]&\}}}}||d||||fVqWdS)Nzcomment-tags�)rrrr)	r�codeZcode_linenoZtranslator_stringsr�lineno�funcname�messagesZpython_translator_commentsrrr�process_pythons

z!BabelMakoExtractor.process_python)�__name__�
__module__�__qualname__r
rr�
__classcell__rr)rrr
srccs(t|||�}x||�D]
}|VqWdS)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)rrrrZ	extractor�messagerrr�extract,sr N)�__doc__Zbabel.messages.extractrZmako.ext.extractrrr rrrr�<module>s

Zerion Mini Shell 1.0