python (3.12.0)

(root)/
lib/
python3.12/
__pycache__/
ast.cpython-312.opt-1.pyc

ˑedZddlZddlZddlddlmZmZddlmZm	Z	m
Z
dPddddZd	ZdQdd
dZ
dZd
ZdRdZdZdZdSdZej(dZdTdZdZdddZdZGddeZGddeZdZdZee ds(d Z!d!Z"d"Z#d#Z$e%e!e"e _&e%e#e$e _'Gd$d%e(Z)d&Z*Gd'd(e e))Z+Gd*d+e e))Z,Gd,d-e e))Z-Gd.d/e e))Z.Gd0d1e e))Z/e/Z0e+e1e2e3fe,e4fe-e5fe.e(de6fe/e(d2fiZ7e+e6fiZ8e6d/e(dd/e1d(e2d(e3d(e4d+e5d-e(d2d1iZ9Gd3d4e:Z;Gd5d6e;Z<Gd7d8e;Z=ee>d9sd:Z?d;Z@e%e?e@e>_AGd<d=eBZCGd>d?eDZEGd@dAeDZFGdBdCeDZGdDeHejjdzzZKe
eGdEdFZLdGZMdHZNgeMeNZOGdIdJeZPdKZQdLDcic]}|eRj|c}ZTdMZUdNZVeWdOk(reVyycc}w)UaH
    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.
N)*)contextmanagernullcontext)IntEnumauto_simple_enumF)
type_commentsfeature_versionct}|r	|tz}|d}n*t|tr|\}}|dk7rt	d||}t|||||S)z
    Parse the source into an AST node.
    Equivalent to compile(source, filename, mode, PyCF_ONLY_AST).
    Pass type_comments=True to get back type comments where the syntax allows.
    zUnsupported major version: )_feature_version)
PyCF_ONLY_ASTPyCF_TYPE_COMMENTS
isinstancetuple
ValueErrorcompile)sourcefilenamemoder	r
flagsmajorminors        7/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/ast.pyparser"sl
E
##	OU	+&uA::5'BCC68T5$355ct|trt|jdd}t|tr|j
}dfdfdfd|S)aT
    Evaluate an expression node or a string containing only a Python
    expression.  The string or node provided may only consist of the following
    Python literal structures: strings, bytes, numbers, tuples, lists, dicts,
    sets, booleans, and None.

    Caution: A complex expression can overflow the C stack and cause a crash.
    z 	evalrcVd}t|ddx}r|d|z
}t|d|z)Nzmalformed node or stringlinenoz	 on line : )getattrr)nodemsglnos   r_raise_malformed_nodez+literal_eval.<locals>._raise_malformed_nodeEsB($$//3/Yse$$CD8},--rct|tr&t|jtt
tfvr||jSN)rConstanttypevalueintfloatcomplex)r%r(s r_convert_numz"literal_eval.<locals>._convert_numJs7$)T$**-=c5RYEZ-Z!$'zzrct|trRt|jttfr2|j
}t|jtr|S|S|Sr*)rUnaryOpopUAddUSuboperand)r%r7r1s  r_convert_signed_numz)literal_eval.<locals>._convert_signed_numNsUdG$DGGdD\)J"4<<0G$''4( y  y D!!rc	|t|tr|jSt|trt	t|jSt|trtt|jSt|trtt|jSt|tr]t|jtrC|jjdk(r*|j|j cxk(rgk(rtSt|t"rpt%|j&t%|j(k7r|t+t-t|j&t|j(St|t.rt|j0t2t4frn|j6}|j8}t|t:t<fr4t|t>r$t|j0t2r||zS||z
S|S)Nset) rr+r-TuplermapeltsListlistSetr:CallfuncNameidargskeywordsDictlenkeysvaluesdictzipBinOpr4AddSubleftrightr.r/r0)r%rPrQ_convertr1r8r(s   rrRzliteral_eval.<locals>._convertVsdH%::
e
$Xtyy122
d
#Hdii011
c
"s8TYY/00t$DIIt)Diille#		T]](Hb(H5L)I
d
#499~T[[!11%d+C$))4$++689
9
e
$DGGc3Z)H&tyy1D ,E$e-*UG2Ldggs+%<'%<'"4((r)rstrrlstrip
Expressionbody)node_or_stringrRr1r8r(s @@@@rliteral_evalrX8s\.#&~44U;&I.*-',,.
")4N##r)indentcdfd	t|ts"td|jjztt
sdz|dS)a
    Return a formatted dump of the tree in node.  This is mainly useful for
    debugging purposes.  If annotate_fields is true (by default),
    the returned string will show the names and the values for fields.
    If annotate_fields is false, the result string will be more compact by
    omitting unambiguous field names.  Attributes such as line
    numbers and column offsets are not dumped by default.  If this is wanted,
    include_attributes can be set to true.  If indent is a non-negative
    integer or string, then the tree will be pretty-printed with that indent
    level. None (the default) selects the single line representation.
    rcdz
dzz}dzz}nd}d}t|trNt|}g}d}}|jD]]}	t	||}	|	t	||dd}"|	\}	}
|xr|
}|r|j
|d|	M|j
|	_
rb|jrV|jD]G}	t	||}	|	t	||d |	\}	}
|xr|
}|j
|d|	I|r<t|d	kr.|jjd
dj|d|fS|jjd
||j|ddfSt|tr&|sy
d||jfd|DddfSt|dfS#t
$rd}YwxYw#t
$rYwxYw)N
z,
, T.=r
()F)z[]T[c36K|]}|dywrN).0x_formatlevels  r	<genexpr>z(dump.<locals>._format.<locals>.<genexpr>s/S50A!0D/Ss])rASTr,_fieldsr$AttributeErrorappend_attributesrH	__class____name__joinr?repr)r%rjprefixsepclsrE	allsimplerFnamer-simpleriannotate_fieldsinclude_attributesrYs `         rrizdump.<locals>._formatsQJEFUN*F&5.(CFCdC t*CDI&H
'#D$/E=WS$%<%D#H 'u 5
v%0&	KK4 78KK&
'"d&6&6 ,,	9D! 'd 3}dC)@)H $+E5$9ME6 ) 4fIKK4 78	9SY!^#'>>#:#:DIIdOLRVhVV!%!8!8&#((4.QSXXX
d
#!%sxx/Sd/S'STV[[[Dz4=&#H *! !s$GGGG	G G zexpected AST, got %r )r)rrm	TypeErrorrrrsrS)r%r|r}rYris ```@rdumprss\. . `dC .1H1HHII
*VS"9v4=rcdD][}||jvs||jvs!t||d}|t||s=|jdsOt	|||]|S)z
    Copy source location (`lineno`, `col_offset`, `end_lineno`, and `end_col_offset`
    attributes) from *old_node* to *new_node* if possible, and return *new_node*.
    )r"
col_offset
end_linenoend_col_offsetNend_)rqr$hasattr
startswithsetattr)new_nodeold_nodeattrr-s    r
copy_locationrsm
G/8'''DH4H4H,HHdD1E $'DOOF,C$./Orc*fd|dddd|S)a{
    When you compile a node tree with compile(), the compiler expects lineno and
    col_offset attributes for every node that supports them.  This is rather
    tedious to fill in for generated nodes, so this helper adds these attributes
    recursively where not already set, by setting them to the values of the
    parent node.  It works recursively starting at *node*.
    cd|jvr t|ds||_n|j}d|jvr!t|dd||_n|j}d|jvr t|ds||_n|j
}d|jvr!t|dd||_n|j}t|D]}|||||y)Nr"rrr)rqrr"r$rrriter_child_nodes)r%r"rrrchild_fixs      rrz#fix_missing_locations.<locals>._fixst'''4*$4+++t\408",!__
4+++4.",!__
t///t-t4<&4#!%!4!4%d+	HE
JG	Hrr\rrf)r%rs @rfix_missing_locationsrs H.	q!QKrr\c
t|D]t}t|trt|dd|z|_)d|j
vrt|dd|z|_d|j
vs[t|ddx}k||z|_v|S)z
    Increment the line number and end line number of each node in the tree
    starting at *node* by *n*. This is useful to "move code" to a different
    location in a file.
    r"rr)walkr
TypeIgnorer$r"rqr)r%nrrs    rincrement_linenorsd
.eZ("5(A6:ELu((("5(A6:ELE---&ulA>>K)A~E
.Krc#nK|jD]}	|t||fy#t$rY"wxYww)zs
    Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields``
    that is present on *node*.
    N)rnr$ro)r%fields  riter_fieldsrsE
	u---		s5&5	2525c#Kt|D]G\}}t|tr|t|ts,|D]}t|ts|Iyw)z
    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)rrrmr?)r%rzritems    rrr
sW
#4(eeS!K
t
$
dC(J
	s7AA	Act|ttttfs"td|jjz|jrt|jdtsy|jdj}t|tr't|jtr
|j}ny|rddl
}|j|}|S)aC
    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.

    If *clean* is `True`, all tabs are expanded to spaces and any whitespace
    that can be uniformly removed from the second line onwards is removed.
    z%r can't have docstringsrN)rAsyncFunctionDefFunctionDefClassDefModulerrrrsrVExprr-r+rSinspectcleandoc)r%cleantextrs    r
get_docstringrsd-{HfMN2T^^5L5LLMM99DIIaL$799Q<D$!jS&Azz%Krz(.*?(?:\r\n|\n|\r|$))cg}ttj|dD]#\}}|||kDr|S|j|d%|S)z}Split a string into lines ignoring form feed and other chars.

    This mimics how the Python parser splits source code.
    r\r)	enumerate
_line_patternfinditerrp)rmaxlineslinesr"matchs     r_splitlines_no_ffr4s\

E"=#9#9&#A1E
FX$5L	U1XLrc6d}|D]}|dvr||z
}
|dz
}|S)z6Replace all chars except '\f\t' in a line with spaces.r^z	r~rf)rresultcs   r_pad_whitespacerAs6
F
;aKFcMF	
Mr)paddedc	|j|jy|jdz
}|jdz
}|j}|j}t||dz}||k(r$||j
||jS|r.t||j
d|j}nd}|||j
|djz}	||j
d|j}
||dz|}|jd|	|j|
dj|S#t$rYywxYw)aBGet source code segment of the *source* that generated *node*.

    If some location information (`lineno`, `end_lineno`, `col_offset`,
    or `end_col_offset`) is missing, return None.

    If *padded* is `True`, the first line of a multi-line statement will
    be padded with spaces to match its original position.
    Nr\)rr^r)rrr"rrorencodedecoderinsertrprt)rr%rr"rrrrpaddingfirstlasts           rget_source_segmentrLsP??"d&9&9&Aq__q(
__
,,
fz!|<EVV}##%j@GGII
!%-"6"6"8*"E"L"L"NOeFm**,Z[9@@BBE##%o~6==?D&(:&E	LLE	LL
775>%sE6E	EEc#Kddlm}||g}|r2|j}|jt	|||r1yyw)z
    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.
    r)dequeN)collectionsrpopleftextendr)r%rtodos   rrrqs@"$=D
||~$T*+
sAAAc"eZdZdZdZdZdZy)NodeVisitora<
    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.
    crd|jjz}t|||j}||S)z
Visit a node.visit_)rrrsr$
generic_visit)selfr%methodvisitors    rvisitzNodeVisitor.visits4DNN333$(:(:;t}rct|D]a\}}t|tr*|D]$}t|ts|j	|&@t|tsQ|j	|cy)z9Called if no explicit visitor function exists for a node.N)rrr?rmr)rr%rr-rs     rrzNodeVisitor.generic_visitsa'-	"LE5%&!)D!$,

4()E3'

5!
	"rcf|j}tjt|}|,tj	D]\}}t||s|}n|8d|z}	t
||}ddl}|j|dtd||S|j|S#t$rYwxYw)Nrrz" is deprecated; add visit_Constant)r-_const_node_type_namesgetr,itemsrr$warningswarnDeprecationWarningror)	rr%r-	type_namerxrzrrrs	         rvisit_ConstantzNodeVisitor.visit_Constants

*..tE{;	399;
	TeS) $I
 	)F
%!$/ 

(JK0!5t}$!!$''"

s!B$$	B0/B0N)rs
__module____qualname____doc__rrrrfrrrrs&"(rrceZdZdZdZy)NodeTransformeraC
    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 Subscript(
                   value=Name(id='data', ctx=Load()),
                   slice=Constant(value=node.id),
                   ctx=node.ctx
               )

    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)
    ct|D]\}}t|trfg}|D]Y}t|tr6|j	|}|'t|ts|j|I|j
|[||dd|t|ts|j	|}|
t||t||||Sr*)	rrr?rmrrrpdelattrr)rr%r	old_value
new_valuesr-rs       rrzNodeTransformer.generic_visits +D 1	3E9)T*
&-E!%- $

5 1 =$!+E3!7&--e4$%%e,- *	!Is+::i0#D%(D%2%	3&rN)rsrrrrrfrrrrs
!FrrzN{name} is deprecated and will be removed in Python {remove}; use value insteadzU{name} is deprecated and will be removed in Python {remove}; use ast.Constant insteadrcRddl}|jdtd|jS)Deprecated. Use value instead.rNAttribute nr
messageremover_deprecated_DEPRECATED_VALUE_ALIAS_MESSAGEr-rrs  r	_n_getterr,#B7		
zzrcJddl}|jdtd||_y)Nrrrrrrr-rs   r	_n_setterr
)#B7		

rcRddl}|jdtd|jS)rrNAttribute srrrrs  r	_s_getterrrrcJddl}|jdtd||_y)Nrrrrrrs   r	_s_setterrrrceZdZdZdZy)_ABCcd|_y)Nz3Deprecated AST node class. Use ast.Constant instead)r)rxrEs  r__init__z
_ABC.__init__%s	Orcf|tvr)ddl}|jd|jtdt|tsy|tvrC	|j}t|t|xr!t|tj|dStj||S#t$rYywxYw)Nrast.rrFrf)
_const_typesrrr_DEPRECATED_CLASS_MESSAGErr+r-_const_types_notrror,__instancecheck__)rxinstrr-s    rrz_ABC.__instancecheck__(s,  s''()1
!

$),



ul3&78I"5*:*>*>sB*GHH%%c400"

sB$$	B0/B0N)rsrrrrrfrrrr#s
P1rrc^|D]T}||jvr|jj|}|t|ks<t|jd||t
vr4ddl}|jd|jtdt|i|Stj|g|i|S)Nz" got multiple values for argument rrrr)rnindexrHrrsrrrrrr+__new__)rxrEkwargskeyposrs      r_newr>sXckk!kk$T?s||n,NsgVWW
Xl3##$%/HQX		
(((C1$1&11rceZdZdZeZy)Num)rNrsrrrnrrrfrrr
r
NGGrr
)	metaclassceZdZdZeZy)StrsNrrfrrrrRrrrceZdZdZeZy)BytesrNrrfrrrrVrrrceZdZeZy)NameConstantN)rsrrrrrfrrrrZsGrrceZdZdZdZy)Ellipsisrfc|tur+ddl}|jdtdt	dg|i|St	j
|g|i|S)Nrzast.Ellipsisrr.)
_ast_Ellipsisrrrr+r)rxrErrs    rrzEllipsis.__new__`sZ-  (A'
!
C1$1&115d5f55rN)rsrrrnrrfrrrr]sG6rr.ceZdZdZy)slicezDeprecated AST node class.Nrsrrrrfrrrrs$rrceZdZdZdZy)Indexz@Deprecated AST node class. Use the index value directly instead.c|Sr*rf)rxr-rs   rrz
Index.__new__srNrsrrrrrfrrrrs
JrrceZdZdZddZy)ExtSlicez1Deprecated AST node class. Use ast.Tuple instead.c>tt|tfi|Sr*)r;r?Load)rxdimsrs   rrzExtSlice.__new__sT$Z2622rN)rfr rfrrr"r"s
;3rr"r%c|jS)zDeprecated. Use elts instead.r=rs r_dims_getterr)syyrc||_yr*r'rr-s  r_dims_setterr,s		rceZdZdZy)Suite/Deprecated AST node class.  Unused in Python 3.Nrrfrrr.r.9rr.ceZdZdZy)AugLoadr/Nrrfrrr2r2r0rr2ceZdZdZy)AugStorer/Nrrfrrr4r4r0rr4ceZdZdZy)Paramr/Nrrfrrr6r6r0rr61eceZdZdZeZeZeZeZeZ	eZ
eZeZeZ
e
ZeZeZeZeZeZeZeZeZeZdZy)_Precedencez5Precedence table that originated from python grammar.cN	|j|dzS#t$r|cYSwxYwNr\)rrrr(s rnextz_Precedence.nexts.	>>$(++	K	s$$N)rsrrrr
NAMED_EXPRTUPLEYIELDTESTORANDNOTCMPEXPRBORBXORBANDSHIFTARITHTERMFACTORPOWERAWAITATOMr<rfrrr9r9s?JFEFE6D	
B
&C
&C
&C6D
C6D6DFEFE6D
VFFEFE6Drr9)'")z"""'''ceZdZdZdddZdZdZdZddZd	Z	e
ddZe
d
dd
Ze
dZ
dZdZdZdZdZdZfdZdZdZdZdZdZdZdZdZdZdZd Zd!Z d"Z!d#Z"d$Z#d%Z$d&Z%d'Z&d(Z'd)Z(d*Z)d+Z*d,Z+d-Z,d.Z-d/Z.d0Z/d1Z0d2Z1d3Z2d4Z3d5Z4d6Z5d7Z6d8Z7d9Z8d:Z9d;Z:d<Z;d=Z<d>Z=d?Z>d@Z?e@ddAdBZAe@dCdDZBdEZCdFZDdGZEdHZFdIZGdJZHdKZIdLZJdMZKdNZLdOZMdPZNdQZOdRZPdSZQdTZRdUZSdVdWdXdYdZZTeUjeUjeUjeUjd[ZXd\ZYdXdYd]d^d_d`dadbdcdddedfdgdh
ZZeUjeUjeUjeUjeUjeUjeUjeUjeUjeUjeUjeUjeUjdi
ZbecdjZddkZedldmdndodpdqdrdsdtdudv
ZfdwZgdxdydzZheUjeUjd{Zkd|Zld}Zmd~ZndZodZpdZqdZrdZsdZtdZudZvdZwdZxdZydZzdZ{dZ|dZ}dZ~dZdZdZdZxZS)	_UnparserzMethods in this class recursively traverse an AST and
    output source code for the abstract syntax; original formatting
    is disregarded.F)_avoid_backslashescXg|_i|_i|_d|_||_d|_y)NrF)_source_precedences
_type_ignores_indentrU_in_try_star)rrUs  rrz_Unparser.__init__s0"4!rct|}	|t||D]}|||y#t$rYywxYw)z7Call f on each item in seq, calling inter() in between.N)iterr<
StopIteration)rinterfseqrhs     r
interleavez_Unparser.interleavesL3i	
d3iL
!
		s5	AAct|dk(r||djdyjfd||y)zTraverse and separate the given *items* with a comma and append it to
        the buffer. If *items* is a single item sequence, a trailing comma
        will be added.r\r,c&jdSNr_writer(sr<lambda>z&_Unparser.items_view.<locals>.<lambda>DJJt$4rN)rHrhrb)r	traverserrs`  r
items_viewz_Unparser.items_views8u:?eAhJJsOOO4iGrc@|jr|jdyy)z8Adds a newline if it isn't the start of generated sourcer]N)rWrhr(s r
maybe_newlinez_Unparser.maybe_newlines<<JJtrcf|j|jd|jz|zy)zXIndent a piece of text and append it, according to the current
        indentation levelz    N)rnrhrZrrs  rfillz_Unparser.fills*	


6DLL(4/0rc:|jj|y)zAdd new source partsN)rWrrps  rrhz_Unparser.writesD!rNc#PK|g}|j}||_|||_ywr*)rW)rbufferoriginal_sources   rbufferedz_Unparser.buffereds,>F,,&s$&extrac#K|jd|r|j||xjdz
c_d|xjdzc_yw)aA context manager for preparing the source for blocks. It adds
        the character':', increases the indentation on enter and decreases
        the indentation on exit. If *extra* is given, it will be directly
        appended after the colon character.
        :r\N)rhrZ)rrxs  rblockz_Unparser.blocksA	

3JJu
sAAc#XK|j|d|j|yw)zA context manager for preparing the source for expressions. It adds
        *start* to the buffer and enters, after exit it adds *end*.Nrg)rstartends   rdelimitz_Unparser.delimits"
	

5


3s(*c>|r|j||StSr*)rr)rr}r~	conditions    r
delimit_ifz_Unparser.delimit_if's<<s++= rcL|jdd|j||kDS)z,Shortcut to adding precedence related parensrarb)rget_precedence)r
precedencer%s   rrequire_parensz_Unparser.require_parens-s%sC)<)<T)BZ)OPPrcV|jj|tjSr*)rXrr9r@rr%s  rrz_Unparser.get_precedence1s!  $$T;+;+;<<rc0|D]}||j|<yr*)rX)rrnodesr%s    rset_precedencez_Unparser.set_precedence4s!	1D&0Dd#	1rc(t|ttttfrt|jdkry|jd}t|tsy|j}t|trt|jtr|Syy)zIf a docstring node is found in the body of the *node* parameter,
        return that docstring node, None otherwise.

        Logic mirrored from ``_PyAST_GetDocString``.r\Nr)rrrrrrHrVrr-r+rSrs  rget_raw_docstringz_Unparser.get_raw_docstring8sv
#[(FC

^a
yy|$%zzdH%*TZZ*EK+F%rcx|jj|jxs|j}|d|Sy)Nz	 # type: )rYrr"type_comment)rr%comments   rget_type_commentz_Unparser.get_type_commentHs?$$((5J9J9Jwi((rcvt|tr|D]}|j|yt||yr*)rr?traversesuperr)rr%rrrs   rrz_Unparser.traverseMs6dD!
$

d#
$
GM$rchg|_|j|dj|jS)zOutputs a source code string that, if converted back to an ast
        (using ast.parse) will generate an AST equivalent to *node*r^)rWrrtrs  rrz_Unparser.visitWs*

dwwt||$$rc|j|x}r0|j||j|jddy|j|jyr;)r_write_docstringrrV)rr%	docstrings   r"_write_docstring_and_traverse_bodyz,_Unparser._write_docstring_and_traverse_body^sL//55I5!!),MM$))AB-(MM$))$rc|jDcic]}|jd|jc}|_|j	||jjycc}w)Nignore)type_ignoresr"tagrYrclear)rr%rs   rvisit_Modulez_Unparser.visit_Modulees`++

MMVFJJ<00
	
//5  "
s!A$cjdd5jfdj|jdddj	dj|j
y#1swY6xYw)Nrarbc&jdSrfrgr(srriz._Unparser.visit_FunctionType.<locals>.<lambda>p

4(r -> )rrbrargtypesrhreturnsrs` rvisit_FunctionTypez_Unparser.visit_FunctionTypems_
\\#s
#	OO($--
	
	

6

dll#
		s+A44A=c|j|jtj|j|j|jyr*)rqrr9r?r-rrs  r
visit_Exprz_Unparser.visit_Exprvs5		K--tzz:

djj!rcf|jtj|5|jtj|j
|j|j|j
|jd|j|jdddy#1swYyxYw)Nz := )	rr9r=rrOtargetr-rrhrs  rvisit_NamedExprz_Unparser.visit_NamedExpr{sy

 
 !7!7
>	& 0 0$++tzzJMM$++&JJvMM$**%		&	&	&sA=B''B0c|jdjfdj|jy)Nzimport c&jdSrfrgr(srriz(_Unparser.visit_Import.<locals>.<lambda>

4 0r)rqrbrnamesrs` rvisit_Importz_Unparser.visit_Imports(		)0$--Lrc0jdjd|jxsdz|jrj|jjdj	fdj
|jy)Nzfrom .rz import c&jdSrfrgr(srriz,_Unparser.visit_ImportFrom.<locals>.<lambda>rr)rqrhrjmodulerbrrrs` rvisit_ImportFromz_Unparser.visit_ImportFromsd		'

3$**/*+;;JJt{{#

:0$--LrcJ|j|jD]D}|jtj||j||j
dF|j|j|j|x}r|j
|yy)N = )	rqtargetsrr9r>rrhr-r)rr%rrs    rvisit_Assignz_Unparser.visit_Assigns		ll	F 1 16:MM&!JJu		


djj!0066<6JJ|$7rc|j|j|j|jd|j|j
jjzdz|j|jy)Nr~z= )	rqrrrhbinopr4rrrsr-rs  rvisit_AugAssignz_Unparser.visit_AugAssignsZ		

dkk"

3DGG$5$5$>$>??$FG

djj!rc|j|jdd|jxrt|jt
5|j
|jddd|jd|j
|j|jr-|jd|j
|jyy#1swYoxYw)Nrarbr#r)
rqrr{rrrCrrh
annotationr-rs  rvisit_AnnAssignz_Unparser.visit_AnnAssigns		
__S#4;;'X:dkkSW;X
Y	'MM$++&	'

4

doo&::JJuMM$**%		'	'sCCc|jd|jr-|jd|j|jyy)Nreturnr~)rqr-rhrrs  rvisit_Returnz_Unparser.visit_Returns5		(::JJsOMM$**%rc&|jdy)Npassrqrs  r
visit_Passz_Unparser.visit_Passs		&rc&|jdy)Nbreakrrs  rvisit_Breakz_Unparser.visit_Breaks		'rc&|jdy)Ncontinuerrs  rvisit_Continuez_Unparser.visit_Continues		*rc|jdjfdj|jy)Nzdel c&jdSrfrgr(srriz(_Unparser.visit_Delete.<locals>.<lambda>rr)rqrbrrrs` rvisit_Deletez_Unparser.visit_Deletes(		&0$--Nrc|jd|j|j|jr-|j	d|j|jyy)Nzassert r_)rqrtestr&rhrs  rvisit_Assertz_Unparser.visit_AssertsF		)

dii 88JJtMM$((#rc|jdjfdj|jy)Nzglobal c&jdSrfrgr(srriz(_Unparser.visit_Global.<locals>.<lambda>rrrqrbrhrrs` rvisit_Globalz_Unparser.visit_Globals(		)0$**djjIrc|jdjfdj|jy)Nz	nonlocal c&jdSrfrgr(srriz*_Unparser.visit_Nonlocal.<locals>.<lambda>rrrrs` rvisit_Nonlocalz_Unparser.visit_Nonlocals(		+0$**djjIrcT|jtj|5|jd|jrV|jd|jtj|j|j|jdddy#1swYyxYw)Nawaitr~)rr9rNrhr-rrOrrs  rvisit_Awaitz_Unparser.visit_Awaitu

 
 !2!2D
9	*JJwzz

3##K$4$4djjA

djj)	*	*	*A4BB'cT|jtj|5|jd|jrV|jd|jtj|j|j|jdddy#1swYyxYw)Nyieldr~)rr9r?rhr-rrOrrs  rvisit_Yieldz_Unparser.visit_YieldrrcH|jtj|5|jd|jstd|j
tj|j|j|jdddy#1swYyxYw)Nzyield from z-Node can't be used without a value attribute.)	rr9r?rhr-rrrOrrs  rvisit_YieldFromz_Unparser.visit_YieldFromsv

 
 !2!2D
9	&JJ}%:: !PQQ 0 0$**=MM$**%	&	&	&sA.BB!c8|jd|js|jrtdy|j	d|j|j|jr-|j	d|j|jyy)Nraisez*Node can't use cause without an exception.r~z from )rqexccauserrhrrs  rvisit_Raisez_Unparser.visit_Raisesn		'xxzz #MOO

3

dhh::JJx MM$**%rc`|jd|j5|j|jddd|jD]}|j||j
rE|jd|j5|j|j
ddd|jrF|jd|j5|j|jdddyy#1swYxYw#1swYhxYw#1swYyxYw)Ntryelsefinally)rqr{rrVhandlersorelse	finalbody)rr%exs   rdo_visit_tryz_Unparser.do_visit_trys		%
ZZ\	%MM$))$	%--	BMM"	;;IIf
+

dkk*
+>>IIi 
.

dnn-
.
.	%	%
+
+
.
.s#DD&D$DD!$D-ct|j}	d|_|j|||_y#||_wxYw)NFr[rrr%prev_in_try_stars   r	visit_Tryz_Unparser.visit_Trys;,,	1 %Dd# 0D 0D.	7ct|j}	d|_|j|||_y#||_wxYw)NTrrs   r
visit_TryStarz_Unparser.visit_TryStars;,,	1 $Dd# 0D 0Drc|j|jrdnd|jr,|jd|j	|j|j
r,|jd|j|j
|j
5|j	|jdddy#1swYyxYw)Nzexcept*exceptr~ as )rqr[r,rhrrzr{rVrs  rvisit_ExceptHandlerz_Unparser.visit_ExceptHandler
s		t00)h?99JJsOMM$))$99JJvJJtyy!
ZZ\	%MM$))$	%	%	%s CCc|j|jD]$}|jd|j|&|jd|jzt|dr|j
|j|jdd|jxs|j5d}|jD])}|r|jdnd	}|j|+|jD])}|r|jdnd	}|j|+	ddd|j5|j|dddy#1swY4xYw#1swYyxYw)
N@zclass type_paramsrarb)rFr_T)rndecorator_listrqrrzr_type_params_helperrrbasesrFrhr{r)rr%decocommaes     rvisit_ClassDefz_Unparser.visit_ClassDefsC''	 DIIcNMM$	 	
		(TYY&'4'$$T%5%56
__S#4::3N_
O
	!EZZ
!JJt$ E

a 
!]]
!JJt$ E

a 
!
	!ZZ\	:33D9	:	:
	!
	!	:	:s5A3EE(E%(E1c(|j|dy)Ndef_function_helperrs  rvisit_FunctionDefz_Unparser.visit_FunctionDef2sdE*rc(|j|dy)Nz	async defr
rs  rvisit_AsyncFunctionDefz _Unparser.visit_AsyncFunctionDef5sdK0rc|j|jD]$}|jd|j|&|dz|jz}|j|t|dr|j
|j|jdd5|j|jddd|jr,|jd|j|j|j|j|5|j|dddy#1swY}xYw#1swYyxYw)Nrr~rrarbrrw)rnrrqrrzrrrrrErrhr{rr)rr%fill_suffixrdef_strs     rrz_Unparser._function_helper8s''	 DIIcNMM$	 #dii/		'4'$$T%5%56
\\#s
#	%MM$))$	%<<JJvMM$,,'
ZZd33D9Z
:	:33D9	:	:	%	%
	:	:s D8E8EE
c|Kt|dkDr<jdd5jfdj|dddyyy#1swYyxYw)Nrrcrlc&jdSrfrgr(srriz/_Unparser._type_params_helper.<locals>.<lambda>L

4(8r)rHrrbr)rrs` rrz_Unparser._type_params_helperIs_"s;'7!';c3'
V 8$--U
V
V(<"
V
Vs!AAc|j|j|jr-|jd|j|jyyNr#)rhrzboundrrs  r
visit_TypeVarz_Unparser.visit_TypeVarNs:

499::JJtMM$**%rc@|jd|jzyNrrhrzrs  rvisit_TypeVarTuplez_Unparser.visit_TypeVarTupleTs

3?#rc@|jd|jzyN**rrs  rvisit_ParamSpecz_Unparser.visit_ParamSpecWs

4$))#$rc|jd|j|j|j|j|jd|j|jy)Nztype r)rqrrzrrrhr-rs  rvisit_TypeAliasz_Unparser.visit_TypeAliasZsN		'

dii   !1!12

5

djj!rc(|jd|y)Nzfor _for_helperrs  r	visit_Forz_Unparser.visit_Foras&rc(|jd|y)Nz
async for r$rs  rvisit_AsyncForz_Unparser.visit_AsyncFordst,rcf|j||jtj|j|j|j|j
d|j|j|j|j|5|j|jddd|jrF|jd|j5|j|jdddyy#1swY\xYw#1swYyxYw)N in rwr)rqrr9r>rrrhr]r{rrVr)rrqr%s   rr%z_Unparser._for_helpergs		$K--t{{;

dkk"

6

dii 
ZZd33D9Z
:	%MM$))$	%;;IIf
+

dkk*
+
+	%	%
+
+s$D5D'D$'D0c|jd|j|j|j5|j|jddd|j
rt
|j
dk(rt|j
dtr|j
d}|jd|j|j|j5|j|jddd|j
r6t
|j
dk(rt|j
dtr|j
rF|jd|j5|j|j
dddyy#1swYOxYw#1swYxYw#1swYyxYw)Nzif r\rzelif r)	rqrrr{rVrrHrIfrs  rvisit_Ifz_Unparser.visit_IftsF		%

dii 
ZZ\	%MM$))$	%kkc$++.!3
4;;q>SU8V;;q>DIIgMM$))$
)

dii(
)	kkc$++.!3
4;;q>SU8V;;IIf
+

dkk*
+
+	%	%
)
)

+
+s#F&-F3F?&F03F<?Gc|jd|j|j|j5|j|jddd|j
rF|jd|j5|j|j
dddyy#1swY\xYw#1swYyxYw)Nzwhile r)rqrrr{rVrrs  rvisit_Whilez_Unparser.visit_Whiles		(

dii 
ZZ\	%MM$))$	%;;IIf
+

dkk*
+
+	%	%
+
+sB4C4B=C	cjdjfdj|jj	j|5j|jdddy#1swYyxYw)Nzwith c&jdSrfrgr(srriz&_Unparser.visit_With.<locals>.<lambda>rrrwrqrbrrr{rrVrs` r
visit_Withz_Unparser.visit_Withsf		'0$--L
ZZd33D9Z
:	%MM$))$	%	%	%BBcjdjfdj|jj	j|5j|jdddy#1swYyxYw)Nzasync with c&jdSrfrgr(srriz+_Unparser.visit_AsyncWith.<locals>.<lambda>rrrwr2rs` rvisit_AsyncWithz_Unparser.visit_AsyncWithsf		- 0$--L
ZZd33D9Z
:	%MM$))$	%	%	%r4quote_typesescape_special_whitespacecfd}djt||}dvr|Dcgc]
}|tvs|}}|Dcgc]	}|vs|}}|s+tt	fd|Dd}dd|gfSr1|jfd	|dddk(rd
ddzdz|fScc}wcc}w)zHelper for writing string literals, minimizing escapes.
        Returns the tuple (string literal to write, possible quote types).
        cs|dvr|S|dk(s|js |jdjdS|S)Nz
	\unicode_escapeascii)isprintablerr)rr:s rescape_charz2_Unparser._str_literal_helper.<locals>.escape_charsB-fDy

xx 0188AAHrr^r]c32K|]}d|vs|ywrerf)rgqstrings  rrkz0_Unparser._str_literal_helper.<locals>.<genexpr>sCF1IN!Csrr\rc|ddk(S)Nrrrf)rCescaped_strings rriz/_Unparser._str_literal_helper.<locals>.<lambda>sqt~b7I/Ir)rNr=)rtr<
_MULTI_QUOTESrur<sort)	rrDr9r:rApossible_quotesrCquoterFs	 ` `    @r_str_literal_helperz_Unparser._str_literal_helpers	[&!9:%>!*9PQQ-=OqPOP&5Q.9P1QQ&\FC[CVAYOE!B<%((  %I Jq!!$r(::!/!4t!;nR>P!P..#QQs
B:B:	B?B?r9ch|j||\}}|d}|j|||y)zKWrite string literal value with a best effort attempt to avoid backslashes.rLrN)rKrh)rrDr9
quote_types    r_write_str_avoiding_backslashesz)_Unparser._write_str_avoiding_backslashess>"66v;6W ^


j\&*67rc&|jdg}|jD]\}|j5}|j|ddd|j	djt
|tf^g}tt}d}|D]l\}}|r8|j||d\}}	t|	j|rd}n2|	}nd|vr|D
cgc]
}
|
tvs|
}}
|j	|n|rNdg}|j|D]6\}}|rtd|z}d	}|t!|d
}|j	|8dj|}|d}|j|||y#1swY>xYwcc}
w)Nr`r^FTr8r]rRrQz'"rr)rhrJrv_write_fstring_innerrprtrr+r?_ALL_QUOTESrKr:
isdisjointrGrrurH)
rr%
fstring_partsr-rtnew_fstring_partsr9fallback_to_repris_constantnew_quote_typesrCexpected_prefixrNs
             rvisit_JoinedStrz_Unparser.visit_JoinedStrs

3
[[	E
1F))%0
1  *UH"=>
	;' "/	,E;)-)A)A +.2*B*&
'22;?'+$-*5LQm9KqLL$$U+	, !'K##%&3
0"{ u-E&+O!#o"6r:E!((/

0)* ^


j\%56Q
1
1*MsF
F*FF	ct|tr#|jD]}|j|yt|trXt|j
tr>|j
jddjdd}|j|yt|tr|j|ytd|)N{z{{}z}}z"Unexpected node inside JoinedStr, )r	JoinedStrrJrQr+r-rSreplacerhFormattedValuevisit_FormattedValuerrr%r-s   rrQz_Unparser._write_fstring_innersdI&
1))%0
1
h
'Jtzz3,GJJ&&sD199#tDEJJu
n
-%%d+A$JKKrcfd}jdd5||j}|jdrjdj||jdk7r'jdt|j|jr,jdj|jdddy#1swYyxYw)Nct}|jtjj	||j|Sr*)r,rr9r@r<r)innerunparserrs  r
unparse_innerz5_Unparser.visit_FormattedValue.<locals>.unparse_inners>!tDz|H##K$4$4$9$9$;UC>>%((rr\r]r~r!rz)rr-rrh
conversionchrformat_specrQ)rr%rgexprs`   rraz_Unparser.visit_FormattedValues	)
\\#s
#
	< ,Ds#

3JJt"$

Qs4??3456

3))$*:*:;
	<
	<
	<sB4CCc:|j|jyr*)rhrDrs  r
visit_Namez_Unparser.visit_Names

477rc|j|jdk(r|jd|j|jt
y)NurL)rqkindrhrOr-rGrs  rrz_Unparser._write_docstrings9		99JJsO,,TZZ],Src
\t|ttfrN|jt	|jdtjddtdtdy|jr"t|tr|j|y|jt	|y)Ninfnanra-rb)
rr/r0rhrur__INFSTRrUrSrOr+s  r_write_constantz_Unparser._write_constantseeW-.
JJU(!G9AgYa 89


$
$E3)?007JJtE{#rcf|j}t|tr8|jdd5|j	|j
|dddy|dur|j
dy|jdk(r|j
d|j|jy#1swYyxYw)Nrarb....rp)r-rrrrlrwrhrqrbs   rrz_Unparser.visit_Constant-s

eU#c3'
= 4 4e<
=
=
c\JJuyyC

3  ,
=
=sB''B0cjdd5jfdj|jdddy#1swYyxYw)Nrcrlc&jdSrfrgr(srriz&_Unparser.visit_List.<locals>.<lambda>;rjr)rrbrr=rs` r
visit_Listz_Unparser.visit_List9sC
\\#s
#	POO4dmmTYYO	P	P	P+AAc|jdd5|j|j|jD]}|j|	dddy#1swYyxYw)Nrcrlrrelt
generatorsrr%gens   rvisit_ListCompz_Unparser.visit_ListComp=T
\\#s
#	#MM$((#
#

c"
#	#	#	#>AA$c|jdd5|j|j|jD]}|j|	dddy#1swYyxYw)Nrarbrrs   rvisit_GeneratorExpz_Unparser.visit_GeneratorExpCrrc|jdd5|j|j|jD]}|j|	dddy#1swYyxYw)Nr\r]rrs   r
visit_SetCompz_Unparser.visit_SetCompIrrc&|jdd5|j|j|jd|j|j|j
D]}|j|	dddy#1swYyxYw)Nr\r]r#)rrrrhr-rrs   rvisit_DictCompz_Unparser.visit_DictCompOsp
\\#s
#	#MM$((#JJtMM$**%
#

c"
#		#	#	#sA*BBc2|jr|jdn|jd|jtj|j
|j
|j
|jd|jtjj|jg|j|j
|j|jD]$}|jd|j
|&y)Nz async for z for r* if )is_asyncrhrr9r>rrr@r<r]ifs)rr%	if_clauses   rvisit_comprehensionz_Unparser.visit_comprehensionWs==JJ}%JJwK--t{{;

dkk"

6K,,113TYYJJ

dii 	%IJJvMM)$	%rc.|jtj|5|jtjj	|j
|j|j|j
|jd|j|j|jd|jtj|j|j|jdddy#1swYyxYw)Nrz else )
rr9r@rr<rVrrrhrrs  rvisit_IfExpz_Unparser.visit_IfExpes

 
 !1!14
8	' 0 0 5 5 7DIINMM$))$JJvMM$))$JJx  0 0$++>MM$++&	'	'	'sC!DDc|jrFjdd5jfdj|jdddyj	dy#1swYyxYw)Nr\r]c&jdSrfrgr(srriz%_Unparser.visit_Set.<locals>.<lambda>rrrz{*()})r=rrbrrhrs` r	visit_Setz_Unparser.visit_Setos^99c3'
T 8$--S
T
T

JJw
T
Ts+A&&A/c	fdfd}jdd5jfd|t|j|jdddy#1swYyxYw)Nclj|jdj|yrrrh)kvrs  rwrite_key_value_pairz2_Unparser.visit_Dict.<locals>.write_key_value_pairys'MM!JJtMM!rc|\}}|Cjdjtj|j	|y||yr)rhrr9rEr)rrrrrs   r
write_itemz(_Unparser.visit_Dict.<locals>.write_item~sKDAqy

4 ##K$4$4a8

a $Q*rr\r]c&jdSrfrgr(srriz&_Unparser.visit_Dict.<locals>.<lambda>rr)rrbrLrIrJ)rr%rrs`  @r
visit_Dictz_Unparser.visit_DictxsT	
		+\\#s
#	OO(*c$))T[[6Q
			s5AA'c|jddt|jdk(xs"|j|tj
kD5|j
|j|jdddy#1swYyxYw)Nrarbr)rrHr=rr9r>rlrrs  rvisit_Tuplez_Unparser.visit_Tuplesl
__		NaP4#6#6t#<{?P?P#P
	6

OODMM4995	6	6	6s'A>>B~not+ru)InvertNotr5r6)rrrruc|j|jjj}|j|}|j||5|j
||tjur|j
d|j||j|j|jdddy#1swYyxYwNr~)unopr4rrrsunop_precedencerrhr9rLrr7r)rr%operatoroperator_precedences    r
visit_UnaryOpz_Unparser.visit_UnaryOps99TWW..778"228<

 
 !4d
;	(JJx #+*<*<<

3 3T\\BMM$,,'	(	(	(s
A,CC
rr/%<<>>|^&//r)
rNrOMultMatMultDivModLShiftRShiftBitOrBitXorBitAndFloorDivPow)
rrurrrrrrrrrrr)rc6|j|jjj}|j|}|j||5||jvr|j}|}n|}|j}|j||j|j|j|jd|d|j||j|j|jdddy#1swYyxYwr)
rr4rrrsbinop_precedencerbinop_rassocr<rrPrrhrQ)rr%rrleft_precedenceright_precedences      rvisit_BinOpz_Unparser.visit_BinOps::dgg//889"33H=

 
 !4d
;	&4,,,"5":":"<#6 "5#6#;#;#= ;MM$))$JJ8*A' 0$**=MM$**%	&	&	&s
B7DDz==z!=<z<=>z>=iszis notinznot in)
EqNotEqLtLtEGtGtEIsIsNotInNotInc|jtj|5|jtjj	|j
g|j|j|j
t|j|jD]N\}}|jd|j|jjzdz|j|P	dddy#1swYyxYwr)rr9rDrr<rPcomparatorsrrLopsrhcmpopsrrrs)rr%ors    r
visit_Comparez_Unparser.visit_Compares

 
 $
7	!D 4 4 6		UDDTDTUMM$))$DHHd&6&67
!1

3Q[[-A-A!BBSHI

a 
!	!	!	!sCC<<Dandor)AndOr)rrc*j|jjj}j|fd}j|5d|dj
fd||jdddy#1swYyxYw)Ncljj|j|yr*)r<rr)r%rrs rincreasing_level_traversez9_Unparser.visit_BoolOp.<locals>.increasing_level_traverses/"5":":"< 3T:MM$rr~c&jSr*rg)rrsrriz(_Unparser.visit_BoolOp.<locals>.<lambda>sDJJqMr)boolopsr4rrrsboolop_precedencerrbrJ)rr%rrrrs`   @@rvisit_BoolOpz_Unparser.visit_BoolOps<< 1 1 : :;"44X>	 
 
 !4d
;	[H:QAOO13LdkkZ	[	[	[s(B		Bc|jtj|j|j	|jt|jtr5t|jjtr|jd|jd|j|jy)Nr~r)
rr9rOr-rrr+r.rhrrs  rvisit_Attributez_Unparser.visit_AttributesuK,,djj9

djj!djj(+
4::;K;KS0QJJsO

3

499rc|jtj|j|j	|j|jdd5d}|jD])}|r|jdnd}|j	|+|jD])}|r|jdnd}|j	|+	dddy#1swYyxYw)NrarbFr_T)	rr9rOrBrrrErhrF)rr%rrs    r
visit_Callz_Unparser.visit_Call
sK,,dii8

dii 
\\#s
#
	!EYY
!JJt$ E

a 
!]]
!JJt$ E

a 
!
	!
	!
	!s
A3CCcd}|jtj|j|j	|j|jdd5||jr1|j|j|jjn|j	|jdddy#1swYyxYw)Nc>t|txr|jSr*)rr;r=)slice_values ris_non_empty_tuplez5_Unparser.visit_Subscript.<locals>.is_non_empty_tuple s;.%$$
rrcrl)	rr9rOr-rrrrlr=)rr%rs   rvisit_Subscriptz_Unparser.visit_Subscripts		
K,,djj9

djj!
\\#s
#	*!$**-

tzz?

djj)	*	*	*s
ACCc|jd|jtj|j|j|jyr)rhrr9rEr-rrs  r
visit_Starredz_Unparser.visit_Starred/s7

3K,,djj9

djj!rc&|jdy)Nryrgrs  rvisit_Ellipsisz_Unparser.visit_Ellipsis4s

5rc4|jr|j|j|jd|jr|j|j|jr-|jd|j|jyy)Nrz)lowerrrhuppersteprs  rvisit_Slicez_Unparser.visit_Slice7sb::MM$**%

3::MM$**%99JJsOMM$))$rc|jd|j|j|j5|jD]}|j|	dddy#1swYyxYw)Nzmatch )rqrsubjectr{cases)rr%cases   rvisit_Matchz_Unparser.visit_MatchAs[		(

dll#
ZZ\	$


$

d#
$	$	$	$s#A**A3c|j|j|jr-|jd|j|jyyr)rhargrrrs  r	visit_argz_Unparser.visit_argHs:

488??JJtMM$//*rcld}|j|jz}dgt|t|jz
z|jz}t	t||dD]\}}|\}}|rd}n|j
d|j||r"|j
d|j||t|jk(so|j
d|js|jr|rd}n|j
d|j
d|jrq|j
|jj|jjr6|j
d|j|jj|jrot|j|jD]L\}}|j
d|j||s+|j
d|j|N|jr|rd}n|j
d|j
d	|jjz|jjr7|j
d|j|jjyyy)
NTr\Fr_r`z, /rr#r)posonlyargsrErHdefaultsrrLrhrvararg
kwonlyargsrrkw_defaultskwarg)	rr%rall_argsrrelementsads	         rvisit_argumentsz_Unparser.visit_argumentsNs##dii/6S]S-??@4==P(Xx)@!D	"OE8DAq

4 MM!

3

a D,,--

5!	";;$//

4 JJsO{{

4;;??+;;))JJt$MM$++"8"89??DOOT-=-=>
%1

4 

a JJsOMM!$
%::

4 JJtdjjnn,-zz$$

4 

djj334%
rc|j|jdn,|j|j|jd|j|jy)Nrr`)rrhrr-rs  r
visit_keywordz_Unparser.visit_keywordsC88JJtJJtxx JJsO

djj!rc|jtj|5|jd|j	5}|j|jdddr|jdg||jd|jtj|j|j|jdddy#1swY}xYw#1swYyxYw)Nlambdar~r#)	rr9r@rhrvrrErrV)rr%rts   rvisit_Lambdaz_Unparser.visit_Lambdas

 
 !1!14
8	%JJx 
)F

dii(
)

3((JJt 0 0$))<MM$))$	%	%
)
)	%	%s$"C'CA3C'C$	 C''C0c|j|j|jr|jd|jzyyNr)rhrzasnamers  rvisit_aliasz_Unparser.visit_aliass3

499;;JJv+,rc|j|j|jr-|jd|j|jyyr)rcontext_expr
optional_varsrhrs  rvisit_withitemz_Unparser.visit_withitems@

d''(JJvMM$,,-rcL|jd|j|j|jr,|j	d|j|j|j5|j|jdddy#1swYyxYw)Nzcase r)rqrpatternguardrhr{rVrs  rvisit_match_casez_Unparser.visit_match_caseso		'

dll#::JJvMM$**%
ZZ\	%MM$))$	%	%	%s5BB#c:|j|jyr*)rr-rs  rvisit_MatchValuez_Unparser.visit_MatchValues

djj!rc:|j|jyr*)rwr-rs  rvisit_MatchSingletonz_Unparser.visit_MatchSingletonsTZZ(rcjdd5jfdj|jdddy#1swYyxYw)Nrcrlc&jdSrfrgr(srriz/_Unparser.visit_MatchSequence.<locals>.<lambda>rr)rrbrpatternsrs` rvisit_MatchSequencez_Unparser.visit_MatchSequencesA
\\#s
#	OO($--
			r}cL|j}|d}|jd|y)N_r)rzrh)rr%rzs   rvisit_MatchStarz_Unparser.visit_MatchStars'yy<D

Qtf:rc
8fd}jdd5|j}jfd|t||jd|j
}|'|rj
dj
d|dddy#1swYyxYw)	Ncv|\}}j|jdj|yrr)pairrprs   rwrite_key_pattern_pairz<_Unparser.visit_MatchMapping.<locals>.write_key_pattern_pairs0DAqMM!JJtMM!rr\r]c&jdSrfrgr(srriz._Unparser.visit_MatchMapping.<locals>.<lambda>rrTstrictr_r)rrIrbrLr%restrh)rr%r.rIr2s`    rvisit_MatchMappingz_Unparser.visit_MatchMappings	\\#s
#	(99DOO(&D$--5

99DJJt$

Rv;'	(	(	(sA.BBc
jtj|jj	|jjdd5|j}jfdj||j}|rDfd}|rjdjfd|t||jddddy#1swYyxYw)	Nrarbc&jdSrfrgr(srriz,_Unparser.visit_MatchClass.<locals>.<lambda>rrcZ|\}}j|dj|y)Nr`)rhr)r,rrrs   rwrite_attr_patternz6_Unparser.visit_MatchClass.<locals>.write_attr_patterns*$(MD'JJ$qz*MM'*rr_c&jdSrfrgr(srriz,_Unparser.visit_MatchClass.<locals>.<lambda>sDJJt,rTr0)rr9rOrxrrr%rb	kwd_attrsrhrLkwd_patterns)rr%r%attrsr7s`    rvisit_MatchClassz_Unparser.visit_MatchClasssK,,dhh7

dhh
\\#s
#	}}HOO($--
NNE+
JJt$,&t00>			s
A?C!!C*c|j}|j}||jdy||j|jy|jtj
|5|j
tj|j|j|j|jd|jdddy#1swYyxYw)Nr(r)	rzrrhrr9r@rrFr)rr%rzrs    r
visit_MatchAsz_Unparser.visit_MatchAssyy,,<JJsO
_JJtyy!$$[%5%5t<
/##KOOT\\B

dll+

T$))-.
/
/
/s
+A$CC!c6jtj|5jtjj	g|j
j
fdj|j
dddy#1swYyxYw)Nc&jdS)Nz | rgr(srriz)_Unparser.visit_MatchOr.<locals>.<lambda>sDJJu$5r)rr9rFrr<r%rbrrs` r
visit_MatchOrz_Unparser.visit_MatchOrso

 
 $
7	UD 4 4 6GGOO5t}}dmmT	U	U	UsA$BB)r^r*)rsrrrrrbrlrnrqrhrrvr{rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr r"r&r(r%r-r/r3r7rRrKrOrZrQrarnrrwrr|rrrrrrrrrrr9rCrLrrrrJrKrIrFrGrHrMr	frozensetrrrrrrBrArrrrrrrrrrr
rrrrrr r"r&r)r3r<r>rA
__classcell__)rrs@rrTrTs.3"
H
1"''#!Q=1 )
 %%#$"
&MM%"&&O$JJ**&
&
.11	%:4+1:"V
&$%"'-++$+%%&1E$/LFQ8-7^L<$T$
-P####%' ,6%cBD








	O
(
E"

















__





 W%L&$F!4(G +{~~F[	!$* "
%$+15f"	%-
.%")((./UrrTc8t}|j|Sr*)rTr)ast_objrfs  runparserFs{H>>'""r)r
rrrrc|tvr7t|xt|<}ddl}|jd|td|Std|d)Nrrrrzmodule 'ast' has no attribute 'rP)_deprecated_globalsglobalsrrrro)rzr-rs   r__getattr__rJs`"""5d";;	$%4&M#<W		

:4&B
CCrcvddl}|jd}|jd|jdddd	
|jddd
dd|jdddd|jdddd|jddtdd|j}|j5}|j}dddt|jj|j|j }tt||j|j!y#1swYlxYw)"Nrz
python -m ast)proginfilerbr ?ruz$the file to parse; defaults to stdin)r,nargsdefaulthelpz-mz--modeexec)rSsingler	func_typez(specify what kind of code must be parsed)rQchoicesrRz--no-type-commentsTstore_falsez)don't add information about type comments)rQactionrRz-az--include-attributes
store_truez:include attributes such as line numbers and column offsets)rXrRz-iz--indentr
z'indentation of nodes (number of spaces))r,rQrR)r	)r}rY)argparseArgumentParseradd_argumentFileTyper.
parse_argsrMreadrrzrno_type_commentsprintrr}rY)rZparserrErMrtrees      rmainrds>

$
$/
$
:F
x'8'8d'8'C3 #CEh GGI,d=HJ
4\./jsAFHD	
))499DDYDYZD	$t(?(?
TUs3D//D8__main__)z	<unknown>rS)TF)r\)Tr*)Xrsysre_ast
contextlibrrenumrrrrrXrrrrrrrrrrrrrobjectrrrrrr+rrrrpropertyrrr,rrr
rrrrrr.r/r0rSbytesboolrrrrmrrr"r;r)r,r%modr.expr_contextr2r4r6ru
float_info
max_10_exprvr9_SINGLE_QUOTESrGrRrTrFrIpoprHrJrdrs)rzs0r<module>rus4	2,,5t5,8$v@@F" F.	0

34

05"J7(&7(t8k8xU x)Y/HJ)Y/HJ14162 (d(dH8t
6x4
6
#ug	#	E84:t$tCyl$
	.J	5U	7Iz	%C%E
3u3uf,5EJ:C::l::|::L:cnn//!34
4
g>
///aUaUF!#D	')--

DV0zFQsH<