GIF89a; EcchiShell v1.0
//lib64/python2.7/

Mass Deface ¡s  ccsrxkt|ƒD]]\}}t|tƒr0|Vq t|tƒr x(|D]}t|tƒrF|VqFqFWq q WdS(s‰ Yield all direct child nodes of *node*, that is, all fields that are nodes and all items of fields that are lists of nodes. N(R>RR=R(R.tnameR5titem((s/usr/lib64/python2.7/ast.pyRR­s cCsªt|tttfƒs1td|jjƒ‚n|jr¦t|jdtƒr¦t|jdj t ƒr¦|r•ddl }|j |jdj j ƒS|jdj j SdS(sª Return the docstring for the given node or None if no docstring can be found. If the node provided does not have docstrings a TypeError will be raised. s%r can't have docstringsiiÿÿÿÿN(Rt FunctionDeftClassDeftModuleRHR?R@R2tExprtvalueRtinspecttcleandocR(R.tcleanRa((s/usr/lib64/python2.7/ast.pyt get_docstring»s ccsTddlm}||gƒ}x.|rO|jƒ}|jt|ƒƒ|Vq"WdS(så Recursively yield all descendant nodes in the tree starting at *node* (including *node* itself), in no specified order. This is useful if you only want to modify nodes in place and don't care about the context. iÿÿÿÿ(tdequeN(t collectionsRetpoplefttextendRR(R.Rettodo((s/usr/lib64/python2.7/ast.pyRVËs   t NodeVisitorcBs eZdZd„Zd„ZRS(s< A node visitor base class that walks the abstract syntax tree and calls a visitor function for every node found. This function may return a value which is forwarded by the `visit` method. This class is meant to be subclassed, with the subclass adding visitor methods. 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 `visit` method. 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|||jƒ}||ƒS(s Visit a node.tvisit_(R?R@R9t generic_visit(tselfR.tmethodtvisitor((s/usr/lib64/python2.7/ast.pytvisitíscCs‚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>RRR=Rp(RmR.R5R`R[((s/usr/lib64/python2.7/ast.pyRlós (R@t __module__t__doc__RpRl(((s/usr/lib64/python2.7/ast.pyRjÙs tNodeTransformercBseZdZd„ZRS(s\ A :class:`NodeVisitor` subclass that walks the abstract syntax tree and allows modification of nodes. The `NodeTransformer` will walk the AST and use the return value of the visitor methods to replace or remove the old node. If the return value of the visitor method is ``None``, the node will be removed from its location, otherwise it is replaced with the return value. The return value may be the original node in which case no replacement takes place. Here is an example transformer that rewrites all occurrences of name lookups (``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 :meth:`generic_visit` method for the node first. For nodes that were part of a collection of statements (that applies to all statement nodes), the visitor may also return a list of nodes rather than just a single node. Usually you use the transformer like this:: node = YourTransformer().visit(node) cCsx t|ƒ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>R9R RRR=RpRhtappendtdelattrRM(RmR.R5t old_valuet new_valuesR`RN((s/usr/lib64/python2.7/ast.pyRl"s(      (R@RqRrRl(((s/usr/lib64/python2.7/ast.pyRsþs"N(Rrt_astRRR4R R RIRQRURWR>RRRdRVtobjectRjRs(((s/usr/lib64/python2.7/ast.pyts  +    %