3

U'ícz}ã
@sLUdZddlZddlZddlZddlZddlmZddlm	Z	ddlm
Z
ddlmZddl
mZdd	l
mZdd
lmZddlmZddlmZdd
lmZddlmZejrddlZddlmZddlmZddlmZGdd„dejƒZ Gdd„de ƒZ!ej"e e!fZ#d@Z$ej%e&df$ej'dƒZ(Gdd„dƒZ)eeej*ej*ej"ej*efdœd d!„ƒZ+ej,e&ge&fej,de&fd"œd#d$„Z-ej,e&e&e.ge&fej,de&fd"œd%d&„Z/ej,e&e&ge&fej,de&fd"œd'd(„Z0ej,e&e&e&e.ge&fej,de&fd"œd)d*„Z1Gd+d,„d,e)ƒZ2Gd-d.„d.e)ƒZ3Gd/d0„d0e)ƒZ4Gd1d2„d2e)ƒZ5Gd3d4„d4e)ƒZ6Gd5d6„d6e)ƒZ7e$d7fe
j8ej9e&e:ej;ej%e.e&ej"ej<e&ej%ej<e&dfffd8œd9d:„Z=Gd;d<„d<ƒZ>ej?ej9e&ej9e&ej@e&ej*fej;ej%e.e&ej"ej<e&ej%ej<e&dffejAe&fd=œd>d?„ZBe2ZCe3ZDe4ZEe5ZFe6ZGe7ZHdS)Az2Extension API for adding custom tags and behavior.éN)ÚMarkupé)Údefaults)Únodes)ÚEnvironment)ÚTemplateAssertionError)ÚTemplateSyntaxError)Úconcat)ÚContext)Ú	Undefined)Ú
import_string)Úpass_context)ÚToken)ÚTokenStream)ÚParserc@s0eZdZeedœdd„Zeeeedœdd„ZdS)Ú_TranslationsBasic)ÚmessageÚreturncCsdS)N©)Úselfrrrú,/tmp/pip-build-gk9425m9/Jinja2/jinja2/ext.pyÚgettextsz_TranslationsBasic.gettext)ÚsingularÚpluralÚnrcCsdS)Nr)rrrrrrrÚngettextsz_TranslationsBasic.ngettextN)Ú__name__Ú
__module__Ú__qualname__ÚstrrÚintrrrrrrsrc@s4eZdZeeedœdd„Zeeeeedœdd„ZdS)Ú_TranslationsContext)ÚcontextrrcCsdS)Nr)rr"rrrrÚpgettext"sz_TranslationsContext.pgettext)r"rrrrcCsdS)Nr)rr"rrrrrrÚ	npgettext%sz_TranslationsContext.npgettextN)rrrrr#r r$rrrrr!!sr!Ú_rrr#r$.z\s*\n\s*c	@s0eZdZUdZejeddœdd„Ze	ƒZ
eje
dZe
ddœdd	„Ze
ddœd
d„Zdeejeejeedœd
d„Zdejdejdfdœdd„Zdejejejejfdœdd„Zdeejeejdœdd„Zd eejejejejejejejejejejejeejdœdd„ZdS)!Ú	ExtensionagExtensions 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).
    N)rcCs|j›d|j›|_dS)NÚ.)rrÚ
identifier)ÚclsrrrÚ__init_subclass__LszExtension.__init_subclass__éd)ÚenvironmentrcCs
||_dS)N)r,)rr,rrrÚ__init__YszExtension.__init__cCs,tjttj|jƒƒ}|jj|jƒ||_|S)z=Create a copy of this extension bound to another environment.)	ÚtÚcastr&ÚobjectÚ__new__Ú	__class__Ú__dict__Úupdater,)rr,ÚrvrrrÚbind\szExtension.bind)ÚsourceÚnameÚfilenamercCs|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)rr7r8r9rrrÚ
preprocesscszExtension.preprocessrr)ÚstreamrcCs|S)aIt'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)rr;rrrÚ
filter_streamlszExtension.filter_streamr)ÚparserrcCs
tƒ‚dS)aIf 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)rr=rrrÚparsevszExtension.parse)r8ÚlinenorcCstj|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)
        )r@)rÚExtensionAttributer()rr8r@rrrÚattr~s
zExtension.attr)r8ÚargsÚkwargsÚdyn_argsÚ
dyn_kwargsr@rcCs8|dkrg}|dkrg}tj|j||d|||||dS)zsCall a method of the extension.  This is a shortcut for
        :meth:`attr` + :class:`jinja2.nodes.Call`.
        N)r@)rÚCallrB)rr8rCrDrErFr@rrrÚcall_methodŠszExtension.call_method)N)N)NNNNN) rrrÚ__doc__r.ZClassVarrr(r*ÚsetÚtagsÚSetÚpriorityrr-r6ÚOptionalr:ÚUnionÚIterabler<rÚNodeÚListr?r rArBÚExprÚKeywordrGrHrrrrr&7s(

$	
@r&)Ú	__contextrCrDrcOs|j|jdƒf|ž|ŽS)Nr)ÚcallÚresolve)rUrCrDrrrÚ_gettext_alias¤srX)Úfuncrcs"ttttjtdœ‡fdd„ƒ}|S)N)rUÚ__stringÚ	variablesrcs$|jˆ|ƒ}|jjrt|ƒ}||S)N)rVÚeval_ctxÚ
autoescaper)rUrZr[r5)rYrrr¬sz"_make_new_gettext.<locals>.gettext)r
r
rr.ÚAny)rYrr)rYrÚ_make_new_gettext«s	r_cs&ttttttjtdœ‡fdd„ƒ}|S)N)rUÚ
__singularÚ__pluralÚ__numr[rcs4|jd|ƒ|jˆ|||ƒ}|jjr,t|ƒ}||S)NÚnum)Ú
setdefaultrVr\r]r)rUr`rarbr[r5)rYrrrºs
z$_make_new_ngettext.<locals>.ngettext)r
r
rr r.r^)rYrr)rYrÚ_make_new_ngettext¹srecs$tttttjtdœ‡fdd„ƒ}|S)N)rUÚ__string_ctxrZr[rcs2|jd|ƒ|jˆ||ƒ}|jjr*t|ƒ}||S)Nr")rdrVr\r]r)rUrfrZr[r5)rYrrr#Ís
z$_make_new_pgettext.<locals>.pgettext)r
r
rr.r^)rYr#r)rYrÚ_make_new_pgettextÌs

rgc	s(tttttttjtdœ‡fdd„ƒ}|S)N)rUrfr`rarbr[rcsB|jd|ƒ|jd|ƒ|jˆ||||ƒ}|jjr:t|ƒ}||S)Nr"rc)rdrVr\r]r)rUrfr`rarbr[r5)rYrrr$às	z&_make_new_npgettext.<locals>.npgettext)r
r
rr r.r^)rYr$r)rYrÚ_make_new_npgettextÝsrhcsÊeZdZdZdhZeddœ‡fdd„Zd%deje	ddœd	d
„Z
d&eje	ddœdd
„Zd'eje
ge
feje
e
ege
feje	ejeje
e
ge
fejeje
e
e
ege
fddœdd„Zdddœdd„Zefeje
ejfeje
ejejee
ejeje
ejeje
dfffdœdd„Zdejejejejfdœdd„Zefe
eje
e
dœdd„Zde	ejeje
e
fdœd d!„Ze
eje
ej e
ej!fejej!e	e	ej"d"œd#d$„Z#‡Z$S)(ÚInternationalizationExtensionz-This extension adds gettext support to Jinja.ZtransN)r,rcs:tƒj|ƒt|jd<|j|j|j|j|j|j	dddS)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)rr,)r2rrr-s
z&InternationalizationExtension.__init__Ú_SupportedTranslations)ÚtranslationsÚnewstylercCsdt|ddƒ}|dkr|j}t|ddƒ}|dkr4|j}t|ddƒ}t|ddƒ}|j|||||ddS)NZugettextZ	ungettextr#r$)rur#r$)Úgetattrrrrp)rrtrurrr#r$rrrrnsz&InternationalizationExtension._install)rurcCsxddl}|jƒ}t|dƒr"|j}ntttdœdd„}t|dƒrF|j}ntttttdœdd	„}|j|j|j|||d
dS)Nrr#)ÚcÚsrcSs|S)Nr)rwrxrrrr#*sz=InternationalizationExtension._install_null.<locals>.pgettextr$)rwrxÚprrcSs|dkr|S|S)Nrr)rwrxryrrrrr$1sz>InternationalizationExtension._install_null.<locals>.npgettext)rrrur#r$)	rÚNullTranslationsÚhasattrr#rr$r rpr)rrurrtr#r$rrrro s

z+InternationalizationExtension._install_null)rrrur#r$rcCsb|dk	r||j_|jjrHt|ƒ}t|ƒ}|dk	r8t|ƒ}|dk	rHt|ƒ}|jjj||||ddS)N)rrr#r$)r,rjr_rergrhrlr4)rrrrur#r$rrrrp<sz0InternationalizationExtension._install_callables)rtrcCs"xdD]}|jjj|dƒqWdS)Nrrr#r$)rrr#r$)r,rlÚpop)rrtÚkeyrrrrqTs
z(InternationalizationExtension._uninstall.)r7Úgettext_functionsrcCs t|tƒr|jj|ƒ}t||ƒS)N)Ú
isinstancerr,r?Úextract_from_ast)rr7r~rrrrrXs
z&InternationalizationExtension._extractr)r=rcCst|jƒj}d}d}d}i}d}x|jjjdkr:|rD|jjdƒ|jjdƒrRP|jjdƒ}|j|kr„|jd|j›d|jt	d	|jjjd
kr°t|jƒ|j
ƒ||j<}	n8|dkrÐ|jdkrÐ|jdk}q$ntj|jd
ƒ||j<}	|dkr$t
|	tjƒr*tjdd
ƒ}|||j<tjtjddƒ|	ƒ}n|	}|jdk}q$W|jjdƒd}
d}tƒ}|j|dƒ\}
}|
rœ|j|
ƒ|dkrœtj|
dd
ƒ}|
ddk}|jjjdƒrDd}t|jƒ|jjjdkr|jjdƒ}|j|krþ|jd|j›d|jt	d	||j}|jdk}|jjdƒ|j|dƒ\}}
t|jƒ|j|ƒn
t|jƒx(|D] }||krTtj|d
ƒ||<qTW|s„d}n|dkrš|jd|ƒ|dkr°|jjd}|rÐ|j|ƒ}|
rÐ|j|
ƒ}
|j||
||t|ƒ|oê|ƒ}|j|ƒ|dk	r
||gS|SdS)zParse a translatable tag.FNZ	block_endÚcommaZcolonr8ztranslatable variable z defined twice.)ÚexcZassignÚtrimmedÚ	notrimmedÚloadZ_transÚstorercTrzname:pluralizezunknown variable z for pluralizationzpluralize without variableszext.i18n.trimmed)rƒr„)Únextr;r@ÚcurrentÚtypeÚexpectZskip_ifÚvalueÚfailrZparse_expressionrÚNamerrGÚAssignrJÚ_parse_blockr4Útestr,ÚpoliciesÚ_trim_whitespaceÚ
_make_nodeÚboolZ
set_lineno)rr=r@Únum_called_numÚplural_exprZplural_expr_assignmentr[rƒÚtokenÚvarrZhave_pluralÚ
referencedZsingular_namesrZplural_namesr8Únoderrrr?cs¦


















z#InternationalizationExtension.parse)ÚstringÚ_ws_rercCs|jd|jƒƒS)Nú )ÚsubÚstrip)rr›rœrrrr’Ösz.InternationalizationExtension._trim_whitespace)r=Úallow_pluralizercCsg}g}xö|jjjdkr<|j|jjjjddƒƒt|jƒq
|jjjdkrŒt|jƒ|jjdƒj}|j|ƒ|jd|›dƒ|jjdƒq
|jjjd	kràt|jƒ|jjjd
ƒr¶Pn|jjjdƒrÔ|rÊP|j	dƒ|j	d
ƒq
|jj
rô|j	dƒq
tdƒ‚q
W|t|ƒfS)z1Parse until the next block tag with a given name.Údataú%z%%Zvariable_beginr8z%(z)sZvariable_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	)rr=r r™Úbufr8rrrrÙs6


z*InternationalizationExtension._parse_block)rrr[r–Úvars_referencedr•rc
Cs|jj}|r0|r0|jddƒ}|r0|jddƒ}|dkr`tjddƒ}tj|tj|ƒggddƒ}	n0tjddƒ}
tj|
tj|ƒtj|ƒ|ggddƒ}	|rÎxf|jƒD]*\}}|r´|dkr´qž|	jj	tj
||ƒƒqžWn.tj|	ƒ}	|rütj|	tj
dd	„|jƒDƒƒƒ}	tj|	gƒS)
z/Generates a useful node from the data provided.z%%r¢Nrr…rrccSs"g|]\}}tjtj|ƒ|ƒ‘qSr)rZPairÚConst)Ú.0r}r‹rrrú
<listcomp>7sz<InternationalizationExtension._make_node.<locals>.<listcomp>)r,rjr¤rrrGr¨ÚitemsrDr£rTZMarkSafeIfAutoescapeÚModÚDictÚOutput)
rrrr[r–r§r•rurršrr}r‹rrrr“þs8

z(InternationalizationExtension._make_node)N)N)NNN)%rrrrIrKrr-r.rNr”rnroÚCallablerr rprqÚGETTEXT_FUNCTIONSrOrÚTemplateÚSequenceÚIteratorÚTuplerrrQrRr?rœÚPatternr’rr­rSr®r“Ú
__classcell__rr)r2rriös2	
 Z<$s%
ric@s(eZdZdZdhZdejdœ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=rcCs"tjt|jƒjd}|jƒ|_|S)N)r@)rÚExprStmtr‡r;r@Zparse_tuplerš)rr=ršrrrr?Fs
zExprStmtExtension.parseN)rrrrIrKrr¹r?rrrrr·?sr·c@s6eZdZdZddhZdejejej	fdœdd„Z
dS)	ÚLoopControlExtensionz/Adds break and continue to the template engine.ÚbreakÚcontinuer)r=rcCs0t|jƒ}|jdkr"tj|jdStj|jdS)Nr»)r@)r‡r;r‹rÚBreakr@ÚContinue)rr=r—rrrr?Qs

zLoopControlExtension.parseN)rrrrIrKr.rOrr½r¾r?rrrrrºLsrºcs$eZdZeddœ‡fdd„Z‡ZS)Ú
WithExtensionN)r,rcs tƒj|ƒtjdtdddS)NzZThe 'with' extension is deprecated and will be removed in Jinja 3.1. This is built in now.é)Ú
stacklevel)rkr-ÚwarningsÚwarnÚDeprecationWarning)rr,)r2rrr-Ys
zWithExtension.__init__)rrrrr-r¶rr)r2rr¿Xsr¿cs$eZdZeddœ‡fdd„Z‡ZS)ÚAutoEscapeExtensionN)r,rcs tƒj|ƒtjdtdddS)Nz`The 'autoescape' extension is deprecated and will be removed in Jinja 3.1. This is built in now.rÀ)rÁ)rkr-rÂrÃrÄ)rr,)r2rrr-ds
zAutoEscapeExtension.__init__)rrrrr-r¶rr)r2rrÅcsrÅc@s8eZdZdZdhZdejdœ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=rcCs8|jjdƒj}tjƒ}|jd|g|d}tj|g|dS)Nz
name:debugÚ_render)r@)r;rŠr@rZContextReferencerHr®)rr=r@r"Úresultrrrr?…szDebugExtension.parse)r"rcCs8|jƒt|jjjƒƒt|jjjƒƒdœ}tj|dddS)N)r"ÚfiltersÚtestsrÀT)ÚdepthÚcompact)Úget_allÚsortedr,rÊÚkeysrËÚpprintÚpformat)rr"rÉrrrrȋszDebugExtension._renderN)rrrrIrKrr®r?r
rrÈrrrrrÆnsrÆT)Úastr~Úbabel_stylerccsx|jtjƒD]ö}t|jtjƒs|jj|kr2qg}x>|jD]4}t|tjƒrht|j	t
ƒrh|j|j	ƒq>|jdƒq>Wx|jD]}|jdƒq~W|j
dk	r¤|jdƒ|jdk	r¸|jdƒ|sÖtdd„|Dƒƒ}|sôqnt|ƒdkrì|d}nt|ƒ}|j|jj|fVqWdS)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.
    Ncss|]}|dk	r|VqdS)Nr)r©Úxrrrú	<genexpr>Øsz#extract_from_ast.<locals>.<genexpr>rr)Zfind_allrrGrršrr8rCr¨r‹rr£rDrErFÚtupleÚlenr@)rÓr~rÔršÚstringsÚargr%Úoutrrrr€–s.+




r€c@sfeZdZdZejejeeefejeddœdd„Z	eej
edœdd„Zeej
ed	œd
d„ZdS)Ú_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_tagsrcCs||_||_d|_d|_dS)Nr)rÝrÞÚoffsetÚlast_lineno)rrÝrÞrrrr-ìsz_CommentFinder.__init__)rßrcCs~zpxjt|j|j|…ƒD]R\}}}|dkry|jddƒ\}}Wntk
rTwYnX||jkr|jƒgSqWgS||_XdS)NÚcommentÚlinecommentr)rárâ)ÚreversedrÝrßÚsplitÚ
ValueErrorrÞÚrstrip)rrßr%Ú
token_typeZtoken_valueÚprefixrárrrÚfind_backwardsôs
z_CommentFinder.find_backwards)r@rcCsf|js|j|krgSx>t|j|jd…ƒD]&\}\}}}||kr,|j|j|ƒSq,W|jt|jƒƒS)N)rÞràÚ	enumeraterÝrßrérØ)rr@ÚidxZtoken_linenor%rrrÚ
find_commentss$z_CommentFinder.find_comments)
rrrrIr.r²r´r rr-rRrérìrrrrrÜås
rÜ)ÚfileobjÚkeywordsrÞÚoptionsrccsÒi}x4|jddƒjdƒD]}|jƒ}|s*qd|t|ƒ<qWt|krJd|t<dtjttftttdœdd„}||d	d
ƒ}t	|jdt
jƒ|jdt
jƒ|jd
t
j
ƒ|jdt
jƒ|jdt
jƒ|jdt
jƒ|jdƒpÎt
j|jdƒpÜt
j||dt
jƒ||dt
jƒt
j||dt
jƒt|ƒddd}||dƒr*d
|jd<||dƒr<d
|_|jƒj|jddƒƒ}	y"|j|	ƒ}
t|j|j|	ƒƒƒ}Wnt k
r’|sŽ‚dSXt!||ƒ}x.t"|
|ƒD] \}
}}|
|||j#|
ƒfVqªWdS)aBabel 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}ÚdefaultrcSs|j|t|ƒƒjƒdkS)NÚ1ÚonÚyesÚtrue>rõr÷rôrö)ÚgetrÚlower)rïr}rórrrÚgetbool?szbabel_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rir.ÚMappingrr”rrZBLOCK_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Údecoder?ÚlistÚlexr:rrÜr€rì)rírîrÞrïrðZextension_namerúrûr,r7ršrÝÚfinderr@rYrrrrÚ
babel_extract
sR% 


r)r%rrr#r$)IrIrÑÚreÚtypingr.rÂZ
markupsaferrñrrr,rÚ
exceptionsrrZruntimer	r
rÚutilsrr
Z
TYPE_CHECKINGZtyping_extensionsÚteÚlexerrrr=rZProtocolrr!rOrsr°r´rÚcompilerœr&r^rXr¯r_r rergrhrir·rºr¿rÅrÆr±r²r”r³rNr€rÜZBinaryIOr­rRrZi18nr¸ZloopcontrolsZwith_r]rÇrrrrÚ<module>s€
m
&*(K
*<J)@V