%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/mako/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyo

�
�ǚPc@s�dZddlTide6de6Zide6de6de6de6d	e	6d
e
6de6de6d
e
6de6de6Zi
de6de6de6de6de6de6de6de6de6de6Zide6de6de6de6Z iZ!e!j"e�e!j"e�e!j"e�e!j"e �ddd�Z#d5d!�Z$d"�Z%d#�Z&d$�Z'd%d&�Z(d'�Z)d(�Z*d)�Z+d*�Z,d+�Z-d,�Z.d-�Z/d.e0fd/��YZ1d0e1fd1��YZ2d2e1fd3��YZ3d4S(6sH
    ast
    ~~~

    The `ast` module helps Python applications to process trees of the Python
    abstract syntax grammar.  The abstract syntax itself might change with
    each Python release; this module helps to find out programmatically what
    the current grammar looks like and allows modifications of it.

    An abstract syntax tree can be generated by passing `ast.PyCF_ONLY_AST` as
    a flag to the `compile()` builtin function or by using the `parse()`
    function from this module.  The result will be a tree of objects whose
    classes all inherit from `ast.AST`.

    A modified abstract syntax tree can be compiled into a Python code object
    using the built-in `compile()` function.

    Additionally various helper functions are provided that make working with
    the trees simpler.  The main intention of the helper functions and this
    module in general is to provide an easy to use interface for libraries
    that work tightly with the python syntax (template engines for example).


    :copyright: Copyright 2008 by Armin Ronacher.
    :license: Python License.
i����(t*tandtort+t-Rt/s//t%s<<s>>t|t&t^s==t>s>=tintissis nott<s<=s!=snot int~tnots	<unknown>texeccCst|||t�S(s%Parse an expression into an AST node.(tcompilet
PyCF_ONLY_AST(texprtfilenametmode((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytparseRst icCs)t|�}|j|�dj|j�S(s�
    This function can convert a node tree back into python sourcecode.  This
    is useful for debugging purposes, especially if you're dealing with custom
    asts not generated by python itself.

    It could be that the sourcecode is evaluable when the AST itself is not
    compilable / evaluable.  The reason for this is that the AST contains some
    more data than regular sourcecode does, which is dropped during
    conversion.

    Each level of indentation is replaced with `indent_with`.  Per default this
    parameter is equal to four spaces as suggested by PEP 8, but it might be
    adjusted to match the application's styleguide.
    t(tSourceGeneratortvisittjointresult(tnodetindent_witht	generator((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt	to_sourceWs
csA�fd��t|t�s7td|jj��n�|�S(sg
    A very verbose representation of the node passed.  This is useful for
    debugging purposes.
    cs|t|t�rBd|jjdj�fd�t|�D��fSt|t�rrddj�fd�|D��St|�S(Ns%s(%s)s, c3s+|]!\}}d|�|�fVqdS(s%s=%sN((t.0tatb(t_format(s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pys	<genexpr>sss[%s]c3s|]}�|�VqdS(N((R!tx(R$(s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pys	<genexpr>vs(t
isinstancetASTt	__class__t__name__Rtiter_fieldstlisttrepr(R(R$(s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyR$ps!sexpected AST, got %r(R&R't	TypeErrorR(R)(R((R$s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytdumpksc	Cs^xWdD]O}||jkr||jkrt||�rt||t||��qqW|S(s�
    Copy the source location hint (`lineno` and `col_offset`) from the
    old to the new node if possible and return the new one.
    tlinenot
col_offset(slinenos
col_offset(t_attributesthasattrtsetattrtgetattr(tnew_nodetold_nodetattr((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
copy_location}s

 cs#�fd���|dd�|S(s�
    Some nodes require a line number and the column offset.  Without that
    information the compiler will abort the compilation.  Because it can be
    a dull task to add appropriate line numbers and column offsets when
    adding new nodes this function can help.  It copies the line number and
    column offset of the parent node to the child nodes without this
    information.

    Unlike `copy_location` this works recursive and won't touch nodes that
    already have a location information.
    cs�d|jkr6t|d�s*||_q6|j}nd|jkrlt|d�s`||_ql|j}nx$t|�D]}�|||�qyWdS(NR/R0(R1R2R/R0titer_child_nodes(RR/R0tchild(t_fix(s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyR;�sii((R((R;s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytfix_missing_locations�s
icCsRxKt|ft|��D]1}d|jkrt|dd�||_qqWdS(s�
    Increment the line numbers of all nodes by `n` if they have line number
    attributes.  This is useful to "move code" to a different location in a
    file.
    R/iN(tziptwalkR1R4R/(Rtn((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytincrement_lineno�sccsbt|d�s|jrdSx=|jD]2}y|t||�fVWq(tk
rYq(Xq(WdS(sAIterate over all fields of a node, only yielding existing fields.t_fieldsN(R2RAR4tAttributeError(Rtfield((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyR*�s
cCstt|��S(s%Like `iter_fiels` but returns a dict.(tdictR*(R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
get_fields�sccsrxkt|�D]]\}}t|t�r0|Vq
t|t�r
x(|D]}t|t�rF|VqFqFWq
q
WdS(s'Iterate over all child nodes or a node.N(R*R&R'R+(RtnameRCtitem((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyR9�s
cCstt|��S(s+Like `iter_child_nodes` but returns a list.(R+R9(R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytget_child_nodes�scCsIt|t�s(td|jj��nidt6dt6j|jd�S(s�
    Get the mode for `compile` of a given node.  If the node is not a `mod`
    node (`Expression`, `Module` etc.) a `TypeError` is thrown.
    sexpected mod node, got %rtevaltsingleR(R&tmodR-R(R)t
ExpressiontInteractivetget(R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytget_compile_mode�s
cCsbt|tttf�s1td|jj��n|jr^t|jdt�r^|jdj	SdS(s�
    Return the docstring for the given node or `None` if no docstring can be
    found.  If the node provided does not accept docstrings a `TypeError`
    will be raised.
    s%r can't have docstringsiN(
R&tFunctionDeftClassDeftModuleR-R(R)tbodytStrts(R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
get_docstring�sccsTddlm}||g�}x.|rO|j�}|jt|��|Vq"WdS(s�
    Iterate over all nodes.  This is useful if you only want to modify nodes in
    place and don't care about the context or the order the nodes are returned.
    i����(tdequeN(tcollectionsRWtpoplefttextendR9(RRWttodo((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyR>�s	tNodeVisitorcBs)eZdZd�Zd�Zd�ZRS(s�
    Walks the abstract syntax tree and call visitor functions for every node
    found.  The visitor functions may return values which will be forwarded
    by the `visit` method.

    Per default the visitor functions for the nodes are ``'visit_'`` +
    class name of the node.  So a `TryFinally` node visit function would
    be `visit_TryFinally`.  This behavior can be changed by overriding
    the `get_visitor` function.  If no visitor function exists for a node
    (return value `None`) the `generic_visit` visitor is used instead.

    Don't use the `NodeVisitor` if you want to apply changes to nodes during
    traversing.  For this a special visitor exists (`NodeTransformer`) that
    allows modifications.
    cCs d|jj}t||d�S(s�
        Return the visitor function for this node or `None` if no visitor
        exists for this node.  In that case the generic visit function is
        used instead.
        tvisit_N(R(R)R4tNone(tselfRtmethod((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytget_visitor	scCs2|j|�}|dk	r%||�S|j|�S(s
Visit a node.N(RaR^t
generic_visit(R_Rtf((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyRs
cCs�x{t|�D]m\}}t|t�r[xO|D]%}t|t�r/|j|�q/q/Wq
t|t�r
|j|�q
q
WdS(s9Called if no explicit visitor function exists for a node.N(R*R&R+R'R(R_RRCtvalueRG((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyRbs
(R)t
__module__t__doc__RaRRb(((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyR\�s			tNodeTransformercBseZdZd�ZRS(s
    Walks the abstract syntax tree and allows modifications of nodes.

    The `NodeTransformer` will walk the AST and use the return value of the
    visitor functions to replace or remove the old node.  If the return
    value of the visitor function is `None` the node will be removed
    from the previous location otherwise it's replaced with the return
    value.  The return value may be the original node in which case no
    replacement takes place.

    Here an example transformer that rewrites all `foo` to `data['foo']`::

        class RewriteName(NodeTransformer):

            def visit_Name(self, node):
                return copy_location(Subscript(
                    value=Name(id='data', ctx=Load()),
                    slice=Index(value=Str(s=node.id)),
                    ctx=node.ctx
                ), node)

    Keep in mind that if the node you're operating on has child nodes
    you must either transform the child nodes yourself or call the generic
    visit function for the node first.

    Nodes that were part of a collection of statements (that applies to
    all statement nodes) may also return a list of nodes rather than just
    a single node.

    Usually you use the transformer like this::

        node = YourTransformer().visit(node)
    cCsxt|�D]�\}}t||d�}t|t�r�g}xp|D]h}t|t�r�|j|�}|dkr}qGq�t|t�s�|j|�qGq�n|j|�qGW||(q
t|t�r
|j|�}|dkr�t	||�q
t
|||�q
q
W|S(N(R*R4R^R&R+R'RRZtappendtdelattrR3(R_RRCt	old_valuet
new_valuesRdR5((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyRbGs(

	
(R)ReRfRb(((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyRg$s!RcBsZeZdZd�Zd�Zdd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d �Z!d!�Z"d"�Z#d#�Z$d$�Z%d%�Z&d&�Z'e'd'd(�Z(e'd)d*�Z)['d+�Z*d,�Z+d-�Z,d.�Z-d/�Z.d0�Z/d1�Z0d2�Z1d3�Z2d4�Z3d5�Z4d6�Z5e5d'd(�Z6e5d7d8�Z7e5d)d*�Z8[5d9�Z9d:�Z:d;�Z;d<�Z<d=�Z=d>�Z>d?�Z?RS(@s�
    This visitor is able to transform a well formed syntax tree into python
    sourcecode.  For more details have a look at the docstring of the
    `node_to_source` function.
    cCs(g|_||_d|_d|_dS(Ni(RRtindentationt	new_lines(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt__init__fs			cCsf|jrR|jr,|jjd|j�n|jj|j|j�d|_n|jj|�dS(Ns
i(RmRRhRRl(R_R%((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytwritels		icCst|j|�|_dS(N(tmaxRm(R_R?((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytnewlinetscCsIt|_|jd7_x|D]}|j|�qW|jd8_dS(Ni(tTruetnew_lineRlR(R_t
statementststmt((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyRSws
	
cCsG|j|j�|jrC|j�|jd�|j|j�ndS(Nselse:(RStorelseRqRo(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytbody_or_else~s
	

csg���fd�}dgt|j�t|j�}xdt|j||j�D]I\}}|��j|�|dk	rU�jd��j|�qUqUW|jdk	r�|��jd|j�n|jdk	r�|��jd|j�ndS(Ncs'�r�jd�n
�jt�dS(Ns, (RoRhRr((R_t
want_comma(s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytwrite_comma�st=Rs**(	R^tlentargstdefaultsR=RRotvarargtkwarg(R_RRytpaddingtargtdefault((R_Rxs?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt	signature�s#&

cCs<x5|jD]*}|j�|jd�|j|�q
WdS(Nt@(tdecorator_listRqRoR(R_Rt	decorator((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
decorators�s

cCsn|j�x@t|j�D]/\}}|r<|jd�n|j|�qW|jd�|j|j�dS(Ns, s = (Rqt	enumeratettargetsRoRRd(R_Rtidxttarget((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Assign�s

cCsL|j�|j|j�|jtt|j�d�|j|j�dS(NRz(RqRR�Rot
BINOP_SYMBOLSttypetopRd(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_AugAssign�s
cCsr|j�|jdd|j|jf�x@t|j�D]/\}}|r]|jd�n|j|�q;WdS(Nsfrom %s%s import t.s, (RqRotleveltmoduleR�tnames(R_RR�RG((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_ImportFrom�s
!cCs<|j�x+|jD] }|jd�|j|�qWdS(Nsimport (RqR�RoR(R_RRG((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Import�s

cCs|j�|j|�dS(N(RqRb(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
visit_Expr�s
cCsl|jdd�|j|�|j�|jd|j�|j|j�|jd�|j|j�dS(NR?isdef %s(s):(RqR�RoRFR�R|RS(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_FunctionDef�s


cseg���fd�}�jdd��j|��j��jd|j�x%|jD]}|��j|�q]Wt|d�r8x<|jD]1}|��j|jd��j|j	�q�W|j
dk	r�|��jd��j|j
�n|jdk	r8|��jd��j|j�q8n�j�rJd	pMd
��j
|j
�dS(Ncs4�r�jd�n�jt��jd�dS(Ns, t((RoRhRr((t	have_argsR_(s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytparen_or_comma�s
R?isclass %stkeywordsRzRs**s):t:(RqR�RoRFtbasesRR2R�R�RdtstarargsR^tkwargsRS(R_RR�tbasetkeyword((R�R_s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_ClassDef�s0



cCs�|j�|jd�|j|j�|jd�|j|j�x�tr�|j}t|�dkr�t|dt	�r�|d}|j�|jd�|j|j�|jd�|j|j�qG|j�|jd�|j|�PqGWdS(Nsif R�iiselif selse:(
RqRoRttestRSRrRvR{R&tIf(R_Rtelse_((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_If�s$


		%






cCsb|j�|jd�|j|j�|jd�|j|j�|jd�|j|�dS(Nsfor s in R�(RqRoRR�titerRw(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt	visit_Fors



cCsE|j�|jd�|j|j�|jd�|j|�dS(Nswhile R�(RqRoRR�Rw(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_While
s



cCsw|j�|jd�|j|j�|jdk	rV|jd�|j|j�n|jd�|j|j�dS(Nswith s as R�(RqRoRtcontext_exprt
optional_varsR^RS(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
visit_Withs



cCs|j�|jd�dS(Ntpass(RqRo(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
visit_Passs
cCs�|j�|jd�t}|jdk	rR|jd�|j|j�t}nx:|jD]/}|rx|jd�n|j|�t}q\W|js�|jd�ndS(Nsprint s >> s, t,(	RqRotFalsetdestR^RRrtvaluestnl(R_RRxRd((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Print"s


	

	cCs[|j�|jd�x=t|�D]/\}}|rF|jd�n|j|�q$WdS(Nsdel s, (RqRoR�R(R_RR�R�((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Delete3s

cCsL|j�|jd�|j|j�x|jD]}|j|�q1WdS(Nstry:(RqRoRSthandlersR(R_Rthandler((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_TryExcept;s


cCsR|j�|jd�|j|j�|j�|jd�|j|j�dS(Nstry:sfinally:(RqRoRSt	finalbody(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_TryFinallyBs



cCs+|j�|jddj|j��dS(Nsglobal s, (RqRoRR�(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_GlobalJs
cCs+|j�|jddj|j��dS(Ns	nonlocal s, (RqRoRR�(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_NonlocalNs
cCs+|j�|jd�|j|j�dS(Nsreturn (RqRoRRd(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_ReturnRs

cCs|j�|jd�dS(Ntbreak(RqRo(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_BreakWs
cCs|j�|jd�dS(Ntcontinue(RqRo(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Continue[s
cCs|j�|jd�t|d�r�|jdk	r�|jd�|j|j�|jdk	r|jd�|j|j�qn�t|d�r|jdk	r|j|j�|jdk	r�|jd�|j|j�n|j	dk	r|jd�|j|j	�qndS(NtraisetexcRs from R�s, (
RqRoR2R�R^RtcauseR�tinstttback(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Raise_s 





cCs(|j|j�|jd|j�dS(NR�(RRdRoR7(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Attributetscsg���fd�}�j|j��jd�x%|jD]}|��j|�q?Wx<|jD]1}|��j|jd��j|j�qgW|jdk	r�|��jd��j|j�n|j	dk	r|��jd��j|j	�n�jd�dS(Ncs'�r�jd�n
�jt�dS(Ns, (RoRhRr((R_Rx(s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyRyzsR�RzRs**t)(
RtfuncRoR|R�R�RdR�R^R�(R_RRyR�R�((R_Rxs?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
visit_Callxs(


cCs|j|j�dS(N(Rotid(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
visit_Name�scCs|jt|j��dS(N(RoR,RU(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt	visit_Str�scCs|jt|j��dS(N(RoR,RU(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Bytes�scCs|jt|j��dS(N(RoR,R?(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt	visit_Num�scCss|jd�d}x@t|j�D]/\}}|rE|jd�n|j|�q#W|j|rhdpkd�dS(NR�i����s, R�s,)(RoR�teltsR(R_RR�RG((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Tuple�s
cs��fd�}|S(Ncsa|j��x@t|j�D]/\}}|r?|jd�n|j|�qW|j��dS(Ns, (RoR�R�R(R_RR�RG(tlefttright(s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyR�s
((R�R�R((R�R�s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytsequence_visit�st[t]t{t}cCs�|jd�xltt|j|j��D]O\}\}}|rQ|jd�n|j|�|jd�|j|�q)W|jd�dS(NR�s, s: R�(RoR�R=tkeysR�R(R_RR�tkeyRd((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
visit_Dict�s
.

cCs\|jd�|j|j�|jdtt|j��|j|j�|jd�dS(NR�s %s R�(RoRR�R�R�R�R�(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_BinOp�s

cCsr|jd�xQt|j�D]@\}}|rP|jdtt|j��n|j|�qW|jd�dS(NR�s %s R�(RoR�R�tBOOLOP_SYMBOLSR�R�R(R_RR�Rd((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_BoolOp�s
!cCs||jd�|j|j�xKt|j|j�D]4\}}|jdtt|��|j|�q3W|jd�dS(NR�s %s R�(RoRR�R=topstcomparatorst
CMPOP_SYMBOLSR�(R_RR�R�((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
visit_Compare�s
"cCsj|jd�tt|j�}|j|�|dkrI|jd�n|j|j�|jd�dS(NR�RRR�(RotUNARYOP_SYMBOLSR�R�Rtoperand(R_RR�((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
visit_UnaryOp�s

cCs>|j|j�|jd�|j|j�|jd�dS(NR�R�(RRdRotslice(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Subscript�s
cCs�|jdk	r"|j|j�n|jd�|jdk	rQ|j|j�n|jdk	r�|jd�t|jt�o�|jjdks�|j|j�q�ndS(NR�R^(	tlowerR^RRotuppertstepR&tNameR�(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Slice�s

$cCsAx:|jD]/\}}|r,|jd�n|j|�q
WdS(Ns, (tdimsRoR(R_RR�RG((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_ExtSlice�scCs!|jd�|j|j�dS(Nsyield (RoRRd(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Yield�s
cCs>|jd�|j|j�|jd�|j|j�dS(Nslambda s: (RoR�R|RRS(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Lambda�s

cCs|jd�dS(NtEllipsis(Ro(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_Ellipsisscs��fd�}|S(NcsO|j��|j|j�x|jD]}|j|�q'W|j��dS(N(RoRteltt
generators(R_Rt
comprehension(R�R�(s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyRs

((R�R�R((R�R�s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytgenerator_visitsR�R�cCsl|jd�|j|j�|jd�|j|j�x|jD]}|j|�qDW|jd�dS(NR�s: R�(RoRR�RdR�(R_RR�((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_DictComps

cCsN|j|j�|jd�|j|j�|jd�|j|j�dS(Ns if s else (RRSRoR�Rv(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_IfExps


cCs!|jd�|j|j�dS(NR(RoRRd(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
visit_Starred"s
cCs.|jd�|j|j�|jd�dS(Nt`(RoRRd(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt
visit_Repr&s
cCs:|j|j�|jdk	r6|jd|j�ndS(Ns as (RoRFtasnameR^(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_alias.scCsx|jd�|j|j�|jd�|j|j�|jrtx.|jD] }|jd�|j|�qMWndS(Ns for s in s if (RoRR�R�tifs(R_Rtif_((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_comprehension3s

	
cCs�|j�|jd�|jdk	ru|jd�|j|j�|jdk	ru|jd�|j|j�qun|jd�|j|j�dS(NtexceptRs as R�(RqRoR�R^RRFRS(R_R((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pytvisit_excepthandler=s




(@R)ReRfRnRoRqRSRwR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�t
visit_Listt	visit_SetR�R�R�R�R�R�R�R�R�R�R�R�tvisit_ListComptvisit_GeneratorExpt
visit_SetCompR�R�R�R�R�RR(((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyR_s�															"					
																				
	
																				
Ns    (4Rft_asttAndtOrR�tAddtSubtMulttDivtFloorDivtModtLShifttRShifttBitOrtBitAndtBitXorR�tEqtGttGtEtIntIstIsNottLttLtEtNotEqtNotInR�tInverttNottUAddtUSubR�tALL_SYMBOLStupdateRR R.R8R<R@R*RER9RHRORVR>tobjectR\RgR(((s?/opt/alt/python27/lib/python2.7/site-packages/mako/_ast_util.pyt<module> sj








								
		
,;

Zerion Mini Shell 1.0