OwlCyberSecurity - MANAGER
Edit File: ext.cpython-37.opt-1.pyc
B �����˝`z}��������������� ���@���sP��U�d�Z�ddlZddlZddlZddlZddlmZ�ddlm Z �ddlm Z �ddlmZ�ddl mZ�dd l mZ�dd lmZ�ddlmZ�ddlmZ�dd lmZ�ddlmZ�ej�rddlZddlmZ�ddlmZ�ddlmZ�G�dd��dej�Z G�dd��de �Z!ej"e e!f�Z#dZ$ej%e&df�e'd<�e�(d�Z)G�dd��d�Z*eeej+ej+ej"ej+ef�d�dd��Z,ej-e&ge&f�ej-de&f�d�d d!�Z.ej-e&e&e/ge&f�ej-de&f�d�d"d#�Z0ej-e&e&ge&f�ej-de&f�d�d$d%�Z1ej-e&e&e&e/ge&f�ej-de&f�d�d&d'�Z2G�d(d)��d)e*�Z3G�d*d+��d+e*�Z4G�d,d-��d-e*�Z5G�d.d/��d/e*�Z6G�d0d1��d1e*�Z7G�d2d3��d3e*�Z8e$d4fe j9ej:e&�e;ej<ej%e/e&ej"ej=e&�ej%ej=e&�df�f�f��d5�d6d7�Z>G�d8d9��d9�Z?ej@ej:e&�ej:e&�ejAe&ej+f�ej<ej%e/e&ej"ej=e&�ej%ej=e&�df�f�ejBe&�f��d:�d;d<�ZCe3ZDe4ZEe5ZFe6ZGe7ZHe8ZIdS�)=z2Extension API for adding custom tags and behavior.�����N)�Markup����)�defaults)�nodes)�Environment)�TemplateAssertionError)�TemplateSyntaxError)�concat)�Context)� Undefined)� import_string)�pass_context)�Token)�TokenStream)�Parserc���������������@���s0���e�Zd�Zeed�dd�Zeeeed�dd�ZdS�)�_TranslationsBasic)�message�returnc�������������C���s���d�S�)N��)�selfr���r���r����;/opt/alt/python37/lib/python3.7/site-packages/jinja2/ext.py�gettext���s����z_TranslationsBasic.gettext)�singular�plural�nr���c�������������C���s���d�S�)Nr���)r���r���r���r���r���r���r����ngettext���s����z_TranslationsBasic.ngettextN)�__name__� __module__�__qualname__�strr����intr���r���r���r���r���r������s���r���c���������������@���s4���e�Zd�Zeeed�dd�Zeeeeed�dd�ZdS�)�_TranslationsContext)�contextr���r���c�������������C���s���d�S�)Nr���)r���r"���r���r���r���r����pgettext"���s����z_TranslationsContext.pgettext)r"���r���r���r���r���c�������������C���s���d�S�)Nr���)r���r"���r���r���r���r���r���r���� npgettext%���s����z_TranslationsContext.npgettextN)r���r���r���r���r#���r ���r$���r���r���r���r���r!���!���s���r!���)�_r���r���r#���r$���.�GETTEXT_FUNCTIONSz\s*\n\s*c������������ ���@���s8��e�Zd�ZU�dZeje�ed<�dd�dd�Ze ��Z eje�ed<�dZe dd �d d�Ze d�d �dd �Zd eeje�eje�ed�dd�Zdejdejd�f�d�dd�Zdejejejej�f�d�dd�Zd!eeje�ejd�dd�Zd"eejejej��ejejej��ejej�ejej�eje�ejd�dd�ZdS�)#� Extensionag��Extensions can be used to add extra functionality to the Jinja template system at the parser level. Custom extensions are bound to an environment but may not store environment specific data on `self`. The reason for this is that an extension can be bound to another environment (for overlays) by creating a copy and reassigning the `environment` attribute. As extensions are created by the environment they cannot accept any arguments for configuration. One may want to work around that by using a factory function, but that is not possible as extensions are identified by their import name. The correct way to configure the extension is storing the configuration values on the environment. Because this way the environment ends up acting as central configuration storage the attributes may clash which is why extensions have to ensure that the names they choose for configuration are not too generic. ``prefix`` for example is a terrible name, ``fragment_cache_prefix`` on the other hand is a good name as includes the name of the extension (fragment cache). � identifierN)r���c�������������C���s���|�j���d|�j���|�_d�S�)N�.)r���r���r(���)�clsr���r���r����__init_subclass__L���s����zExtension.__init_subclass__�tags�d���)�environmentr���c�������������C���s ���||�_�d�S�)N)r.���)r���r.���r���r���r����__init__Y���s����zExtension.__init__c�������������C���s,���t��tt�|�j��}|j�|�j��||_|S�)z=Create a copy of this extension bound to another environment.) �t�castr'����object�__new__� __class__�__dict__�updater.���)r���r.����rvr���r���r����bind\���s����zExtension.bind)�source�name�filenamer���c�������������C���s���|S�)z�This method is called before the actual lexing and can be used to preprocess the source. The `filename` is optional. The return value must be the preprocessed source. r���)r���r9���r:���r;���r���r���r���� preprocessc���s����zExtension.preprocessr���r���)�streamr���c�������������C���s���|S�)a��It's passed a :class:`~jinja2.lexer.TokenStream` that can be used to filter tokens returned. This method has to return an iterable of :class:`~jinja2.lexer.Token`\s, but it doesn't have to return a :class:`~jinja2.lexer.TokenStream`. r���)r���r=���r���r���r���� filter_streaml���s����zExtension.filter_streamr���)�parserr���c�������������C���s ���t����dS�)a��If any of the :attr:`tags` matched this method is called with the parser as first argument. The token the parser stream is pointing at is the name token that matched. This method has to return one or a list of multiple nodes. N)�NotImplementedError)r���r?���r���r���r����parsev���s����zExtension.parse)r:����linenor���c�������������C���s���t�j|�j||d�S�)z�Return an attribute node for the current extension. This is useful to pass constants on extensions to generated template code. :: self.attr('_my_attribute', lineno=lineno) )rB���)r����ExtensionAttributer(���)r���r:���rB���r���r���r����attr~���s���� zExtension.attr)r:����args�kwargs�dyn_args� dyn_kwargsrB���r���c�������������C���s8���|dkrg�}|dkrg�}t�j|�j||d�|||||d�S�)zsCall a method of the extension. This is a shortcut for :meth:`attr` + :class:`jinja2.nodes.Call`. N)rB���)r����CallrD���)r���r:���rE���rF���rG���rH���rB���r���r���r����call_method����s����zExtension.call_method)N)N)NNNNN) r���r���r����__doc__r0���ZClassVarr����__annotations__r+����setr,����SetZpriorityr���r/���r8����Optionalr<����Union�Iterabler>���r����Node�ListrA���r ���rC���rD����Expr�KeywordrI���rJ���r���r���r���r���r'���7���s(��� $ ����@r'���)� __contextrE���rF���r���c�������������O���s���|�j�|��d�f|�|�S�)Nr���)�callZresolve)rV���rE���rF���r���r���r����_gettext_alias����s����rX���)�funcr���c����������������s"���t�tttjtd���fdd��}|S�)N)rV����__string� variablesr���c����������������s$���|�����|�}|�jjrt|�}||�S�)N)rW����eval_ctx� autoescaper���)rV���rZ���r[���r7���)rY���r���r���r�������s����z"_make_new_gettext.<locals>.gettext)r ���r ���r���r0����Any)rY���r���r���)rY���r����_make_new_gettext����s���� r_���c����������������s&���t�tttttjtd���fdd��}|S�)N)rV���� __singular�__plural�__numr[���r���c����������������s4���|��d|��|����|||�}|�jjr,t|�}||�S�)N�num)� setdefaultrW���r\���r]���r���)rV���r`���ra���rb���r[���r7���)rY���r���r���r�������s ����z$_make_new_ngettext.<locals>.ngettext)r ���r ���r���r ���r0���r^���)rY���r���r���)rY���r����_make_new_ngettext����s����re���c����������������s$���t�ttttjtd���fdd��}|S�)N)rV����__string_ctxrZ���r[���r���c����������������s2���|��d|��|����||�}|�jjr*t|�}||�S�)Nr"���)rd���rW���r\���r]���r���)rV���rf���rZ���r[���r7���)rY���r���r���r#�������s ����z$_make_new_pgettext.<locals>.pgettext)r ���r ���r���r0���r^���)rY���r#���r���)rY���r����_make_new_pgettext����s���� rg���c���������� ������s(���t�ttttttjtd���fdd��}|S�)N)rV���rf���r`���ra���rb���r[���r���c����������������sB���|��d|��|��d|��|����||||�}|�jjr:t|�}||�S�)Nr"���rc���)rd���rW���r\���r]���r���)rV���rf���r`���ra���rb���r[���r7���)rY���r���r���r$�������s���� z&_make_new_npgettext.<locals>.npgettext)r ���r ���r���r ���r0���r^���)rY���r$���r���)rY���r����_make_new_npgettext����s����rh���c�������������������s���e�Zd�ZdZdhZedd���fdd�Zd%deje �dd�d d �Z d&eje �dd�dd �Zd'eje ge f�eje e ege f�eje �ejeje e ge f��ejeje e e ege f��dd�dd�Zddd�dd�Zefeje ejf�eje �ejejee ejeje �ejeje �df�f�f��d�dd�Zdejejejej�f�d�dd�Zefe eje �e d�dd�Zde ejeje �e f�d�d d!�Ze eje �ej e ej!f�ejej!�e e ej"d"�d#d$�Z#���Z$S�)(�InternationalizationExtensionz-This extension adds gettext support to Jinja.ZtransN)r.���r���c����������������s:���t����|��t|jd<�|j|�j|�j|�j|�j|�j dd��d�S�)Nr%���F)Zinstall_gettext_translationsZinstall_null_translationsZinstall_gettext_callablesZuninstall_gettext_translationsZextract_translations�newstyle_gettext) �superr/���rX����globals�extend�_install� _install_null�_install_callables� _uninstall�_extract)r���r.���)r4���r���r���r/�����s���� z&InternationalizationExtension.__init__�_SupportedTranslations)�translations�newstyler���c�������������C���sd���t�|dd��}|d�kr|j}t�|dd��}|d�kr4|j}t�|dd��}t�|dd��}|�j|||||d��d�S�)NZugettextZ ungettextr#���r$���)ru���r#���r$���)�getattrr���r���rp���)r���rt���ru���r���r���r#���r$���r���r���r���rn�����s����z&InternationalizationExtension._install)ru���r���c�������������C���sx���dd�l�}|���}t|d�r"|j}ntttd�dd�}t|d�rF|j}ntttttd�dd �}|�j|j�|j|||d ��d�S�)Nr���r#���)�c�sr���c�������������S���s���|S�)Nr���)rw���rx���r���r���r���r#���*��s����z=InternationalizationExtension._install_null.<locals>.pgettextr$���)rw���rx����pr���r���c�������������S���s���|dkr|S�|S�)Nr���r���)rw���rx���ry���r���r���r���r���r$���1��s����z>InternationalizationExtension._install_null.<locals>.npgettext)r���r���ru���r#���r$���) r���ZNullTranslations�hasattrr#���r���r$���r ���rp���r���)r���ru���r���rt���r#���r$���r���r���r���ro��� ��s���� z+InternationalizationExtension._install_null)r���r���ru���r#���r$���r���c�������������C���sb���|d�k r||�j�_|�j�jrHt|�}t|�}|d�k r8t|�}|d�k rHt|�}|�j�jj||||d��d�S�)N)r���r���r#���r$���)r.���rj���r_���re���rg���rh���rl���r6���)r���r���r���ru���r#���r$���r���r���r���rp���<��s����z0InternationalizationExtension._install_callables)rt���r���c�������������C���s"���xdD�]}|�j�j�|d���qW�d�S�)N)r���r���r#���r$���)r.���rl����pop)r���rt����keyr���r���r���rq���T��s���� z(InternationalizationExtension._uninstall.)r9����gettext_functionsr���c�������������C���s ���t�|t�r|�j�|�}t||�S�)N)� isinstancer���r.���rA����extract_from_ast)r���r9���r}���r���r���r���rr���X��s���� z&InternationalizationExtension._extractr���)r?���r���c�������������C���s��t�|j�j}d}d}d}i�}d}�x|jjjdk�r:|rD|j�d��|j�d�rRP�|j�d�}|j|kr�|jd|j�d�|jt d ��|jjjd kr�t�|j��|� ���||j<�} n8|dkr�|jdkr�|jdk}q$nt�|jd ��||j<�} |dkr$t | tj��r*t�dd �}|||j<�t�t�dd�| �}n| }|jdk}q$W�|j�d��d} d}t��}|��|d�\} }| �r�|�| ��|dk�r�t�| d�d �}| d�dk}|jj�d��rDd}t�|j��|jjjdk�r|j�d�}|j|k�r�|jd|j�d�|jt d ��||j�}|jdk}|j�d��|��|d�\}} t�|j��|�|��n t�|j��x(|D�] }||k�rTt�|d �||<��qTW�|�s�d}n|dk�r�|�d|��|dk�r�|�jjd�}|�r�|��|�}| �r�|��| �} |��|| ||t|�|�o�|�}|�|��|dk �r ||gS�|S�dS�)zParse a translatable tag.FNZ block_endZcommaZcolonr:���ztranslatable variable z defined twice.)�excZassign)�trimmedZ notrimmedr�����loadZ_transZstorerc���Tr���zname:pluralizezunknown variable z for pluralizationzpluralize without variableszext.i18n.trimmed)�nextr=���rB����current�type�expectZskip_if�value�failr���Zparse_expressionr����Namer~���rI���ZAssignrM����_parse_blockr6����testr.����policies�_trim_whitespace� _make_node�boolZ set_lineno)r���r?���rB����num_called_num�plural_exprZplural_expr_assignmentr[���r�����token�varr���Zhave_plural� referencedZsingular_namesr���Zplural_namesr:����noder���r���r���rA���c��s����� z#InternationalizationExtension.parse)�string�_ws_rer���c�������������C���s���|��d|����S�)N� )�sub�strip)r���r����r����r���r���r���r�������s����z.InternationalizationExtension._trim_whitespace)r?����allow_pluralizer���c�������������C���s��g�}g�}x�|j�jjdkr<|�|j�jj�dd���t|j���q |j�jjdkr�t|j���|j��d�j}|�|��|�d|��d���|j��d��q |j�jjd kr�t|j���|j�j�d �r�P�n|j�j�d�r�|r�P�|� d��|� d ��q |j�j r�|� d��q td��q W�|t|�fS�)z1Parse until the next block tag with a given name.�data�%z%%Zvariable_beginr:���z%(z)sZvariable_endZblock_beginz name:endtranszname:pluralizez:a translatable section can have only one pluralize sectionz;control structures in translatable sections are not allowedzunclosed translation blockzinternal parser error) r=���r����r�����appendr�����replacer����r����r����r����Zeos�RuntimeErrorr ���)r���r?���r����r����Zbufr:���r���r���r���r�������s6���� z*InternationalizationExtension._parse_block)r���r���r[���r�����vars_referencedr����r���c������� ������C���s��|�j�j}|s,|s,|�dd�}|r,|�dd�}|dkr\t�dd�}t�|t�|�gg�dd�} n0t�dd�} t�| t�|�t�|�|gg�dd�} |r�xf|���D�]*\}}|r�|dkr�q�| j� t� ||���q�W�n.t�| �} |r�t�| t� dd ��|���D����} t�| g�S�) z/Generates a useful node from the data provided.z%%r����Nr���r����r���rc���c�������������S���s"���g�|�]\}}t��t��|�|��qS�r���)r���ZPair�Const)�.0r|���r����r���r���r���� <listcomp>7��s���z<InternationalizationExtension._make_node.<locals>.<listcomp>)r.���rj���r����r���r����rI���r�����itemsrF���r����rU���ZMarkSafeIfAutoescapeZMod�Dict�Output) r���r���r���r[���r����r����r����ru���r���r����r���r|���r����r���r���r���r�������s8���� z(InternationalizationExtension._make_node)N)N)NNN)%r���r���r���rK���r,���r���r/���r0���rO���r����rn���ro����Callabler���r ���rp���rq���r&���rP���r����Template�Sequence�Iterator�Tuplerr���rR���rS���rA���r�����Patternr����r����r����rT���r����r����� __classcell__r���r���)r4���r���ri�������s2��� ��Z<$s% ri���c���������������@���s(���e�Zd�ZdZdhZdejd�dd�ZdS�)�ExprStmtExtensionzrAdds a `do` tag to Jinja that works like the print statement just that it doesn't print the return value. �dor���)r?���r���c�������������C���s"���t�jt|j�jd�}|���|_|S�)N)rB���)r����ExprStmtr����r=���rB���Zparse_tupler����)r���r?���r����r���r���r���rA���F��s���� zExprStmtExtension.parseN)r���r���r���rK���r,���r���r����rA���r���r���r���r���r����?��s���r����c���������������@���s6���e�Zd�ZdZddhZdejejej f�d�dd�Z dS�) �LoopControlExtensionz/Adds break and continue to the template engine.�break�continuer���)r?���r���c�������������C���s0���t�|j�}|jdkr"tj|jd�S�tj|jd�S�)Nr����)rB���)r����r=���r����r����BreakrB����Continue)r���r?���r����r���r���r���rA���Q��s���� zLoopControlExtension.parseN)r���r���r���rK���r,���r0���rP���r���r����r����rA���r���r���r���r���r����L��s���r����c�������������������s$���e�Zd�Zedd���fdd�Z���ZS�)� WithExtensionN)r.���r���c����������������s ���t����|��tjdtdd��d�S�)NzZThe 'with' extension is deprecated and will be removed in Jinja 3.1. This is built in now.����)� stacklevel)rk���r/����warnings�warn�DeprecationWarning)r���r.���)r4���r���r���r/���Y��s ����zWithExtension.__init__)r���r���r���r���r/���r����r���r���)r4���r���r����X��s���r����c�������������������s$���e�Zd�Zedd���fdd�Z���ZS�)�AutoEscapeExtensionN)r.���r���c����������������s ���t����|��tjdtdd��d�S�)Nz`The 'autoescape' extension is deprecated and will be removed in Jinja 3.1. This is built in now.r����)r����)rk���r/���r����r����r����)r���r.���)r4���r���r���r/���d��s ����zAutoEscapeExtension.__init__)r���r���r���r���r/���r����r���r���)r4���r���r����c��s���r����c���������������@���s8���e�Zd�ZdZdhZdejd�dd�Zee d�dd �Z d S�)�DebugExtensiona���A ``{% debug %}`` tag that dumps the available variables, filters, and tests. .. code-block:: html+jinja <pre>{% debug %}</pre> .. code-block:: text {'context': {'cycler': <class 'jinja2.utils.Cycler'>, ..., 'namespace': <class 'jinja2.utils.Namespace'>}, 'filters': ['abs', 'attr', 'batch', 'capitalize', 'center', 'count', 'd', ..., 'urlencode', 'urlize', 'wordcount', 'wordwrap', 'xmlattr'], 'tests': ['!=', '<', '<=', '==', '>', '>=', 'callable', 'defined', ..., 'odd', 'sameas', 'sequence', 'string', 'undefined', 'upper']} .. versionadded:: 2.11.0 �debugr���)r?���r���c�������������C���s8���|j��d�j}t���}|�jd|g|d�}tj|g|d�S�)Nz name:debug�_render)rB���)r=���r����rB���r���ZContextReferencerJ���r����)r���r?���rB���r"����resultr���r���r���rA������s����zDebugExtension.parse)r"���r���c�������������C���s8���|����t|�jj����t|�jj����d�}tj|ddd�S�)N)r"����filters�testsr����T)ZdepthZcompact)Zget_all�sortedr.���r�����keysr�����pprintZpformat)r���r"���r����r���r���r���r�������s����zDebugExtension._renderN)r���r���r���rK���r,���r���r����rA���r ���r���r����r���r���r���r���r����n��s���r����T)�astr}����babel_styler���c�������������c���s���x|���tj�D�]�}t|jtj�r|jj|kr0qg�}x>|jD�]4}t|tj�rft|j t �rf|�|j ��q<|�d��q<W�x|jD�]}|�d��q|W�|j dk r�|�d��|jdk r�|�d��|s�tdd��|D���}|s�qnt|�dkr�|d�}nt|�}|j|jj|fV��qW�dS�)a���Extract localizable strings from the given template node. Per default this function returns matches in babel style that means non string parameters as well as keyword arguments are returned as `None`. This allows Babel to figure out what you really meant if you are using gettext functions that allow keyword arguments for placeholder expansion. If you don't want that behavior set the `babel_style` parameter to `False` which causes only strings to be returned and parameters are always stored in tuples. As a consequence invalid gettext calls (calls without a single string parameter or string parameters after non-string parameters) are skipped. This example explains the behavior: >>> from jinja2 import Environment >>> env = Environment() >>> node = env.parse('{{ (_("foo"), _(), ngettext("foo", "bar", 42)) }}') >>> list(extract_from_ast(node)) [(1, '_', 'foo'), (1, '_', ()), (1, 'ngettext', ('foo', 'bar', None))] >>> list(extract_from_ast(node, babel_style=False)) [(1, '_', ('foo',)), (1, 'ngettext', ('foo', 'bar'))] For every string found this function yields a ``(lineno, function, message)`` tuple, where: * ``lineno`` is the number of the line on which the string was found, * ``function`` is the name of the ``gettext`` function used (if the string was extracted from embedded Python code), and * ``message`` is the string, or a tuple of strings for functions with multiple string arguments. This extraction function operates on the AST and is because of that unable to extract any comments. For comment support you have to use the babel extraction interface or extract comments yourself. Nc�������������s���s���|�]}|d�k r|V��qd�S�)Nr���)r�����xr���r���r���� <genexpr>���s����z#extract_from_ast.<locals>.<genexpr>r���r���)Zfind_allr���rI���r~���r����r����r:���rE���r����r����r���r����rF���rG���rH����tuple�lenrB���)r����r}���r����r����Zstrings�argr%����outr���r���r���r������s.����+ r���c���������������@���sf���e�Zd�ZdZejejeeef��eje�dd�dd�Z eej e�d�dd�Zeej e�d �d d�ZdS�)�_CommentFinderz�Helper class to find comments in a token stream. Can only find comments for gettext calls forwards. Once the comment from line 4 is found, a comment for line 1 will not return a usable value. N)�tokens�comment_tagsr���c�������������C���s���||�_�||�_d|�_d|�_d�S�)Nr���)r����r�����offset�last_lineno)r���r����r����r���r���r���r/������s����z_CommentFinder.__init__)r����r���c���������� ���C���s~���zpxjt�|�j|�j|���D�]R\}}}|dkry|�d�d�\}}W�n�tk rT���wY�nX�||�jkr|���gS�qW�g�S�||�_X�d�S�)N)�commentZlinecommentr���)�reversedr����r�����split� ValueErrorr�����rstrip)r���r����r%���� token_typeZtoken_value�prefixr����r���r���r����find_backwards���s���� z_CommentFinder.find_backwards)rB���r���c�������������C���sd���|�j�r|�j|krg�S�x>t|�j|�jd����D�]&\}\}}}||kr*|��|�j|��S�q*W�|��t|�j��S�)N)r����r����� enumerater����r����r����r����)r���rB����idxZtoken_linenor%���r���r���r���� find_comments��s����$z_CommentFinder.find_comments) r���r���r���rK���r0���r����r����r ���r���r/���rS���r����r����r���r���r���r���r�������s ���r����)�fileobj�keywordsr�����optionsr���c�������������c���s���i�}x4|��dd��d�D�]}|���}|s*qd|t|�<�qW�t|krJd|t<�dtjttf�tttd�dd�}||d d �}t |��dt j�|��dt j�|��d t j �|��dt j�|��dt j�|��dt j�|��d�p�t j|��d�p�t j||dt j�||dt j�t j||dt j�t|�ddd�}||d��r*d |jd<�||d��r<d |_|�����|��dd��} y"|�| �} t|�|�| ���}W�n�t k �r����|�s���dS�X�t!||�}x.t"| |�D�] \} }}| |||�#| �fV���q�W�dS�)a��Babel extraction method for Jinja templates. .. versionchanged:: 2.3 Basic support for translation comments was added. If `comment_tags` is now set to a list of keywords for extraction, the extractor will try to find the best preceding comment that begins with one of the keywords. For best results, make sure to not have more than one gettext call in one line of code and the matching comment in the same line or the line before. .. versionchanged:: 2.5.1 The `newstyle_gettext` flag can be set to `True` to enable newstyle gettext calls. .. versionchanged:: 2.7 A `silent` option can now be provided. If set to `False` template syntax errors are propagated instead of being ignored. :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. (comments will be empty currently) � extensions���,NF)r����r|����defaultr���c�������������S���s���|���|t|�����dkS�)N>����yes�1�true�on)�getr����lower)r����r|���r����r���r���r����getbool?��s����zbabel_extract.<locals>.getbool�silentTZblock_start_stringZblock_end_stringZvariable_start_stringZvariable_end_stringZcomment_start_stringZcomment_end_stringZline_statement_prefixZline_comment_prefixZtrim_blocksZ lstrip_blocksZkeep_trailing_newliner���)Z cache_sizeZauto_reloadr����zext.i18n.trimmedrj����encodingzutf-8)F)$r����r����r����r���ri���r0����Mappingr���r����r���r���ZBLOCK_START_STRINGZBLOCK_END_STRINGZVARIABLE_START_STRINGZVARIABLE_END_STRINGZCOMMENT_START_STRINGZCOMMENT_END_STRINGZLINE_STATEMENT_PREFIXZLINE_COMMENT_PREFIXZTRIM_BLOCKSZ LSTRIP_BLOCKSZNEWLINE_SEQUENCEZKEEP_TRAILING_NEWLINEr����r����rj����read�decoderA����listZlexr<���r���r����r���r����)r����r����r����r����r����Zextension_namer����r����r.���r9���r����r�����finderrB���rY���r���r���r���r���� babel_extract ��sR����% r����)JrK���r�����re�typingr0���r����Z markupsafer���r����r���r���r.���r���� exceptionsr���r���Zruntimer ���r ���r���Zutilsr���r ���Z TYPE_CHECKINGZtyping_extensionsZteZlexerr���r���r?���r���ZProtocolr���r!���rP���rs���r&���r����r���rL����compiler����r'���r^���rX���r����r_���r ���re���rg���rh���ri���r����r����r����r����r����r����r����r����r����rO���r���r����ZBinaryIOr����rS���r����Zi18nr����ZloopcontrolsZwith_r]���r����r���r���r���r����<module>���sx��� m &*(��K *<J)@V