/snap/core24/1643/usr/lib/python3.12/__pycache__
NameSizeModeActions
abc.cpython-312.pyc80550644editdlrm
aifc.cpython-312.pyc428630644editdlrm
antigravity.cpython-312.pyc10030644editdlrm
argparse.cpython-312.pyc1016820644editdlrm
ast.cpython-312.pyc1002790644editdlrm
base64.cpython-312.pyc244080644editdlrm
bdb.cpython-312.pyc373590644editdlrm
bisect.cpython-312.pyc36410644editdlrm
bz2.cpython-312.pyc151330644editdlrm
calendar.cpython-312.pyc396210644editdlrm
cgi.cpython-312.pyc402280644editdlrm
cgitb.cpython-312.pyc173320644editdlrm
chunk.cpython-312.pyc73100644editdlrm
cmd.cpython-312.pyc186190644editdlrm
code.cpython-312.pyc130510644editdlrm
codecs.cpython-312.pyc422740644editdlrm
codeop.cpython-312.pyc69160644editdlrm
colorsys.cpython-312.pyc46420644editdlrm
compileall.cpython-312.pyc204970644editdlrm
configparser.cpython-312.pyc635820644editdlrm
contextlib.cpython-312.pyc303760644editdlrm
contextvars.cpython-312.pyc2610644editdlrm
copy.cpython-312.pyc98000644editdlrm
copyreg.cpython-312.pyc74140644editdlrm
cProfile.cpython-312.pyc85930644editdlrm
crypt.cpython-312.pyc53610644editdlrm
csv.cpython-312.pyc177880644editdlrm
dataclasses.cpython-312.pyc446780644editdlrm
datetime.cpython-312.pyc4090644editdlrm
decimal.cpython-312.pyc4060644editdlrm
difflib.cpython-312.pyc754990644editdlrm
dis.cpython-312.pyc345600644editdlrm
doctest.cpython-312.pyc1056860644editdlrm
enum.cpython-312.pyc807080644editdlrm
filecmp.cpython-312.pyc146610644editdlrm
fileinput.cpython-312.pyc202800644editdlrm
fnmatch.cpython-312.pyc64950644editdlrm
fractions.cpython-312.pyc366670644editdlrm
ftplib.cpython-312.pyc426360644editdlrm
functools.cpython-312.pyc405060644editdlrm
genericpath.cpython-312.pyc68220644editdlrm
getopt.cpython-312.pyc83630644editdlrm
getpass.cpython-312.pyc68500644editdlrm
gettext.cpython-312.pyc221510644editdlrm
glob.cpython-312.pyc98410644editdlrm
graphlib.cpython-312.pyc103270644editdlrm
gzip.cpython-312.pyc320150644editdlrm
hashlib.cpython-312.pyc80870644editdlrm
heapq.cpython-312.pyc179560644editdlrm
hmac.cpython-312.pyc106980644editdlrm
imaplib.cpython-312.pyc628890644editdlrm
imghdr.cpython-312.pyc69440644editdlrm
inspect.cpython-312.pyc1334460644editdlrm
io.cpython-312.pyc41390644editdlrm
ipaddress.cpython-312.pyc907620644editdlrm
keyword.cpython-312.pyc10410644editdlrm
linecache.cpython-312.pyc64010644editdlrm
locale.cpython-312.pyc595360644editdlrm
lzma.cpython-312.pyc158550644editdlrm
mailbox.cpython-312.pyc1116180644editdlrm
mailcap.cpython-312.pyc111550644editdlrm
mimetypes.cpython-312.pyc241850644editdlrm
modulefinder.cpython-312.pyc279440644editdlrm
netrc.cpython-312.pyc89030644editdlrm
nntplib.cpython-312.pyc449390644editdlrm
ntpath.cpython-312.pyc260330644editdlrm
nturl2path.cpython-312.pyc30340644editdlrm
numbers.cpython-312.pyc139670644editdlrm
opcode.cpython-312.pyc147160644editdlrm
operator.cpython-312.pyc173640644editdlrm
optparse.cpython-312.pyc675460644editdlrm
os.cpython-312.pyc434740644editdlrm
pathlib.cpython-312.pyc620980644editdlrm
pdb.cpython-312.pyc849190644editdlrm
pickle.cpython-312.pyc761760644editdlrm
pickletools.cpython-312.pyc811280644editdlrm
pipes.cpython-312.pyc109140644editdlrm
pkgutil.cpython-312.pyc199590644editdlrm
platform.cpython-312.pyc416000644editdlrm
plistlib.cpython-312.pyc412860644editdlrm
poplib.cpython-312.pyc184460644editdlrm
posixpath.cpython-312.pyc182360644editdlrm
pprint.cpython-312.pyc294740644editdlrm
profile.cpython-312.pyc225400644editdlrm
pstats.cpython-312.pyc379220644editdlrm
pty.cpython-312.pyc73630644editdlrm
pyclbr.cpython-312.pyc148870644editdlrm
pydoc.cpython-312.pyc1429550644editdlrm
py_compile.cpython-312.pyc100780644editdlrm
queue.cpython-312.pyc147320644editdlrm
quopri.cpython-312.pyc93230644editdlrm
random.cpython-312.pyc331530644editdlrm
reprlib.cpython-312.pyc99090644editdlrm
rlcompleter.cpython-312.pyc82820644editdlrm
runpy.cpython-312.pyc143850644editdlrm
sched.cpython-312.pyc77350644editdlrm
secrets.cpython-312.pyc25560644editdlrm
selectors.cpython-312.pyc261280644editdlrm
shelve.cpython-312.pyc129130644editdlrm
shlex.cpython-312.pyc141620644editdlrm
shutil.cpython-312.pyc681130644editdlrm
signal.cpython-312.pyc44480644editdlrm
site.cpython-312.pyc290630644editdlrm
sitecustomize.cpython-312.pyc3000644editdlrm
smtplib.cpython-312.pyc482210644editdlrm
sndhdr.cpython-312.pyc107120644editdlrm
socket.cpython-312.pyc418170644editdlrm
socketserver.cpython-312.pyc342580644editdlrm
sre_compile.cpython-312.pyc6250644editdlrm
sre_constants.cpython-312.pyc6280644editdlrm
sre_parse.cpython-312.pyc6210644editdlrm
ssl.cpython-312.pyc630110644editdlrm
stat.cpython-312.pyc52310644editdlrm
statistics.cpython-312.pyc554230644editdlrm
string.cpython-312.pyc114820644editdlrm
stringprep.cpython-312.pyc251600644editdlrm
struct.cpython-312.pyc3250644editdlrm
subprocess.cpython-312.pyc791870644editdlrm
sunau.cpython-312.pyc254230644editdlrm
symtable.cpython-312.pyc187810644editdlrm
sysconfig.cpython-312.pyc300010644editdlrm
tabnanny.cpython-312.pyc121560644editdlrm
tarfile.cpython-312.pyc1233880644editdlrm
telnetlib.cpython-312.pyc284230644editdlrm
tempfile.cpython-312.pyc473390644editdlrm
textwrap.cpython-312.pyc182930644editdlrm
this.cpython-312.pyc14080644editdlrm
threading.cpython-312.pyc653460644editdlrm
timeit.cpython-312.pyc148640644editdlrm
token.cpython-312.pyc35570644editdlrm
tokenize.cpython-312.pyc247750644editdlrm
trace.cpython-312.pyc330240644editdlrm
traceback.cpython-312.pyc515230644editdlrm
tracemalloc.cpython-312.pyc269070644editdlrm
tty.cpython-312.pyc26680644editdlrm
turtle.cpython-312.pyc1846320644editdlrm
types.cpython-312.pyc149390644editdlrm
typing.cpython-312.pyc1418600644editdlrm
uu.cpython-312.pyc78160644editdlrm
uuid.cpython-312.pyc330070644editdlrm
warnings.cpython-312.pyc237920644editdlrm
wave.cpython-312.pyc320840644editdlrm
weakref.cpython-312.pyc313480644editdlrm
webbrowser.cpython-312.pyc263530644editdlrm
xdrlib.cpython-312.pyc118410644editdlrm
zipapp.cpython-312.pyc99770644editdlrm
zipimport.cpython-312.pyc244750644editdlrm
_aix_support.cpython-312.pyc47590644editdlrm
_collections_abc.cpython-312.pyc459120644editdlrm
_compat_pickle.cpython-312.pyc72210644editdlrm
_compression.cpython-312.pyc74970644editdlrm
_distutils_system_mod.cpython-312.pyc78180644editdlrm
_markupbase.cpython-312.pyc122790644editdlrm
_osx_support.cpython-312.pyc177310644editdlrm
_pydatetime.cpython-312.pyc941930644editdlrm
_pydecimal.cpython-312.pyc2278070644editdlrm
_pyio.cpython-312.pyc1102690644editdlrm
_pylong.cpython-312.pyc99830644editdlrm
_py_abc.cpython-312.pyc70540644editdlrm
_sitebuiltins.cpython-312.pyc47600644editdlrm
_strptime.cpython-312.pyc241160644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-312.pyc586510644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-312.pyc586450644editdlrm
_threading_local.cpython-312.pyc82950644editdlrm
_weakrefset.cpython-312.pyc117510644editdlrm
__future__.cpython-312.pyc47040644editdlrm
__hello__.cpython-312.pyc8700644editdlrm
Edit: /snap/core24/1643/usr/lib/python3.12/__pycache__/ast.cpython-312.pyc (100279B)
ЦidZddlZddlZddlddlmZmZddlmZm Z m Z dPddddZ d Z dQdd d Z 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)*)contextmanager nullcontext)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 /usr/lib/python3.12/ast.pyparser"sl E ## OU +& u A::5'BC C 68T5$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.._raise_malformed_nodeEsB($$/ /3 / Yse$ $CD8},--rct|tr&t|jtt t fvr||jSN)rConstanttypevalueintfloatcomplex)r%r(s r _convert_numz"literal_eval.._convert_numJs7$)T$**-=c5RYEZ-Z !$ 'zzrct|trRt|jttfr2|j }t|jtr|S| S|Sr*)rUnaryOpopUAddUSuboperand)r%r7r1s r_convert_signed_numz)literal_eval.._convert_signed_numNsU dG $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(r tSt|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.._convertVs dH %::  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|rz(dump.._format..s/S50A!0D/Ss])rASTr,_fieldsr$AttributeErrorappend _attributesrH __class____name__joinr?repr)r%rjprefixsepclsrE allsimplerFnamer-simpleriannotate_fieldsinclude_attributesrYs ` rrizdump.._formats   QJEFUN*F&5.(CFC dC 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 G GG G G zexpected AST, got %r )r)rrm TypeErrorrrrsrS)r%r|r}rYris ```@rdumprss\. . ` dC .1H1HHII *VS"9v 4= 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.._fixs t'' '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!Q Krr\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 r iter_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( e eS !K t $ dC(J  s7AA Act|ttttfs"t d|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)rAsyncFunctionDef FunctionDefClassDefModulerrrrsrVExprr-r+rSinspectcleandoc)r%cleantextrs r get_docstringrs d-{HfM N2T^^5L5LLMM 99DIIaL$7 99Q<  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!| % 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.rN Attribute nr messageremover _deprecated_DEPRECATED_VALUE_ALIAS_MESSAGEr-rrs r _n_getterr, #B7  zzrcJddl}|jdtd||_y)Nrrrrrrr-rs r _n_setterr ) #B7   rcRddl}|jdtd|jS)rrN Attribute 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 O rcf|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|kssX ckk ! kk$ T?s||n,NsgVW W X l3##$ %/HQX  (((   C 1$ 1& 11rceZdZdZeZy)Num)rNrsrrrnrrrfrrr r N GGrr ) metaclassceZdZdZeZy)StrsNr rfrrrrRr rrceZdZdZeZy)BytesrNr rfrrrrVr 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 eZ eZ 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 FE 6D B &C &C &C 6D C 6D 6D FE FE 6D VF FE FE 6Drr9)'")z"""'''ceZdZdZdddZdZdZdZddZd Z e dd Z e 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=ZZ=d?Z>d@Z?e@ddAdBZAe@dCdDZBdEZCddFZDdGZEdHZFdIZGdJZHdKZIdLZJdMZKdNZLdOZMdPZNdQZOdRZPdSZQdTZRdUZSdVdWdXdYdZZTeUjeUjeUjeUjd[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(srz&_Unparser.items_view..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)<).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.. 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..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!006 6< 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 r visit_Breakz_Unparser.visit_Breaks 'rc&|jdy)Ncontinuerrs rvisit_Continuez_Unparser.visit_Continues *rc|jdjfdj|jy)Nzdel c&jdSrfrgr(srriz(_Unparser.visit_Delete..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..rrrqrbrhrrs` r visit_Globalz_Unparser.visit_Globals( ) 0$**djjIrc|jdjfdj|jy)Nz nonlocal c&jdSrfrgr(srriz*_Unparser.visit_Nonlocal..rrrrs` rvisit_Nonlocalz_Unparser.visit_Nonlocals( + 0$**djjIrcT|jtj|5|jd|jrV|jd|j tj |j|j|jdddy#1swYyxYw)Nawaitr~)rr9rNrhr-rrOrrs r visit_Awaitz_Unparser.visit_Awaitu  !2!2D 9 * JJw zz 3##K$4$4djjA djj)  * * * A4BB'cT|jtj|5|jd|jrV|jd|j tj |j|j|jdddy#1swYyxYw)Nyieldr~)rr9r?rhr-rrOrrs r visit_Yieldz_Unparser.visit_YieldrrcH|jtj|5|jd|js t d|j tj|j|j|jdddy#1swYyxYw)Nz yield 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|jr tdy|j d|j |j|jr-|j d|j |jyy)Nraisez*Node can't use cause without an exception.r~z from )rqexccauserrhrrs r visit_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 rr z_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..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|j d|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 r visit_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..rrrwrqrbrrr{rrVrs` r visit_Withz_Unparser.visit_Withsf ' 0$--L ZZd33D9Z : % MM$)) $ % % % BB cjdjfdj|jj j |5j|j dddy#1swYyxYw)Nz async with c&jdSrfrgr(srriz+_Unparser.visit_AsyncWith..rrrwr2rs` rvisit_AsyncWithz_Unparser.visit_AsyncWithsf -  0$--L ZZd33D9Z : % MM$)) $ % % %r4 quote_typesescape_special_whitespacecfd}djt||}dvr|Dcgc] }|tvs |}}|Dcgc] }|vs| }}|s+tt fd|Dd}dd|gfSrD|j fd |dddk(r!t |dd k(sJd dd zdz|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 r escape_charz2_Unparser._str_literal_helper..escape_charsB-fDy xx 0188AAHrr^r]c32K|]}d|vs |ywrerf)rgqstrings rrkz0_Unparser._str_literal_helper..sCF1IN!Cs rr\r c|ddk(S)Nrr rf)rCescaped_strings rriz/_Unparser._str_literal_helper..sqt~b7I/Ir)rr Nr=)rtr< _MULTI_QUOTESrur<sortrH) rrDr9r:rApossible_quotesrCquoterFs ` ` @r_str_literal_helperz_Unparser._str_literal_helpers   [&!9:% > !*9PQQ-=OqPOP&5Q.9P1QQ&\FC[CVAYOE!B<%( (   %I Jq!!$r(::?1-.!333!/!4t!;nR>P!P..#QQs C C  CCr9ch|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\&*67rcp|jdg}|jD]\}|j5}|j|ddd|j dj t |tf^g}tt}d}|D]p\}}|r8|j||d\}} t| j|rd}n6| }n d|vr|D cgc] } | tvs | }} |sJ|j |r|rodg}|j|D]W\}}|r?td|z}d } |j!| sJt||t#| d }|j |Ydj |}|d } |j| || y#1swYcxYwcc} w) Nr`r^FTr8r]rRrQz'"r r)rhrJrv_write_fstring_innerrprtrr+r? _ALL_QUOTESrKr: isdisjointrGrrurrH) rr% fstring_partsr-rtnew_fstring_partsr9fallback_to_repr is_constantnew_quote_typesrCexpected_prefixrNs rvisit_JoinedStrz_Unparser.visit_JoinedStrs 3 [[ E 1F))%0 1  *UH"=>  ;'  "/ , E;)-)A)A +.2*B*& '22;?'+$- *5LQm9KqL L""{  $ $U + , !'K  # # %&3 0"{ u-E&+O ++O<Id5kI<!#o"6r:E!((/  0)* ^  j\% 56Q 1 1*MsF& F3*F3&F0 c0t|tr%|jD]}|j||yt|trt|j t r|j jddjdd}|rH|jdd}|jdd }|jd d }|jd d }|j|yt|tr|j|ytd|)Nis_format_spec{z{{}z}}r=z\\rPz\'rQz\"r]z\nz"Unexpected node inside JoinedStr, ) r JoinedStrrJrQr+r-rSreplacerhFormattedValuevisit_FormattedValuer)rr%r]r-s rrQz_Unparser._write_fstring_inners dI & P))%)O P h 'Jtzz3,GJJ&&sD199#tDE dF3 c51 c51 dE2 JJu  n -  % %d +A$JK Krcfd}jdd5||j}|jdrjdj||jdk7r'jdt |j|j r.jdj|j d dddy#1swYyxYw) Nct}|jtjj ||j |Sr*)r,rr9r@r<r)innerunparserrs r unparse_innerz5_Unparser.visit_FormattedValue..unparse_inner s>!tDz|H  # #K$4$4$9$9$;U C>>%( (rr^r_r~r !rzTr\)rr-rrh conversionchr format_specrQ)rr%rhexprs` rrcz_Unparser.visit_FormattedValue s ) \\#s # Q ,Ds# 3 JJt "$ Qs4??3456 3))$*:*:4)P Q Q Qs B6CC!c:|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 |j dt j ddt dt dy|jr"t|tr|j|y|jt |y)Ninfnanra-rb) rr/r0rhrura_INFSTRrUrSrOr+s r_write_constantz_Unparser._write_constant%s eeW- . 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....rq)r-rrrrlrxrhrr)rr%r-s rrz_Unparser.visit_Constant3s  eU #c3' = 4 4e< = = c\ JJu yyC 3   , = =s B''B0cjdd5jfdj|jdddy#1swYyxYw)Nrcrlc&jdSrfrgr(srriz&_Unparser.visit_List..Arjr)rrbrr=rs` r visit_Listz_Unparser.visit_List?sC \\#s # P OO4dmmTYY O P P P +AAc|jdd5|j|j|jD]}|j| dddy#1swYyxYw)Nrcrlrrelt generatorsrr%gens rvisit_ListCompz_Unparser.visit_ListCompCT \\#s # # MM$(( # # c" # # # # >AA$c|jdd5|j|j|jD]}|j| dddy#1swYyxYw)Nrarbrrs rvisit_GeneratorExpz_Unparser.visit_GeneratorExpIrrc|jdd5|j|j|jD]}|j| dddy#1swYyxYw)Nr^r_rrs r visit_SetCompz_Unparser.visit_SetCompOrrc&|jdd5|j|j|jd|j|j|j D]}|j| dddy#1swYyxYw)Nr^r_r#)rrrrhr-rrs rvisit_DictCompz_Unparser.visit_DictCompUsp \\#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_comprehension]s == 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 r visit_IfExpz_Unparser.visit_IfExpks  !1!14 8 '    0 0 5 5 7DII N MM$)) $ JJv  MM$)) $ JJx    0 0$++ > MM$++ & ' ' 's C!D  Dc|jrFjdd5jfdj|jdddyj dy#1swYyxYw)Nr^r_c&jdSrfrgr(srriz%_Unparser.visit_Set..xrrz{*()})r=rrbrrhrs` r visit_Setz_Unparser.visit_Setus^ 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..write_key_value_pairs' MM!  JJt  MM! rc|\}}|Cjdjtj|j |y||yr)rhrr9rEr)rrrrrs r write_itemz(_Unparser.visit_Dict..write_itemsKDAqy 4 ##K$4$4a8 a $Q*rr^r_c&jdSrfrgr(srriz&_Unparser.visit_Dict..rr)rrbrLrIrJ)rr%rrs` @r visit_Dictz_Unparser.visit_Dict~sT  +\\#s #  OO(*c$))T[[6Q    s 5AA'c|jddt|jdk(xs"|j|tj kD5|j |j|jdddy#1swYyxYw)Nrarbr)rrHr=rr9r>rlrrs r visit_Tuplez_Unparser.visit_Tuplesl __    Na  P4#6#6t#<{?P?P#P  6 OODMM499 5  6 6 6s 'A>>B~not+rv)InvertNotr5r6)rrrrvc|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) rrvrrrrrrrrrrr)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 r visit_BinOpz_Unparser.visit_BinOps::dgg//889"33H=  !4d ; &4,,,"5":":"<#6 "5#6#;#;#=    ; MM$)) $ JJ8*A '    0$** = MM$** % & & &s B7DDz==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<rP comparatorsrrLopsrhcmpopsrrrs)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..increasing_level_traverses/"5":":"<     3T : MM$ rr~c&jSr*rg)rrsrriz(_Unparser.visit_BoolOp..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|j dd5d}|j D])}|r|jdnd}|j |+|jD])}|r|jdnd}|j |+ dddy#1swYyxYw)NrarbFr_T) rr9rOrBrrrErhrF)rr%rrs r visit_Callz_Unparser.visit_Calls K,,dii8 dii \\#s # !EYY !JJt$ E a  ! ]] !JJt$ E a  ! ! ! !s A3CCcd}|jtj|j|j |j|j dd5||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..is_non_empty_tuple&s;.%$$ rrcrl) rr9rOr-rrrrlr=)rr%rs rvisit_Subscriptz_Unparser.visit_Subscript%s  K,,djj9 djj! \\#s # *!$**- tzz? djj)  * * *s ACC c|jd|jtj|j|j |jyr)rhrr9rEr-rrs r visit_Starredz_Unparser.visit_Starred5s7 3 K,,djj9 djj!rc&|jdy)Nrzrgrs rvisit_Ellipsisz_Unparser.visit_Ellipsis:s 5rc4|jr|j|j|jd|jr|j|j|jr-|jd|j|jyy)Nrz)lowerrrhuppersteprs r visit_Slicez_Unparser.visit_Slice=sb :: MM$** % 3 :: MM$** % 99 JJsO MM$)) $ rc|jd|j|j|j5|jD]}|j| dddy#1swYyxYw)Nzmatch )rqrsubjectr{cases)rr%cases r visit_Matchz_Unparser.visit_MatchGs[ ( dll# ZZ\ $  $ d# $ $ $ $s #A**A3c|j|j|jr-|jd|j|jyyr)rhargrrrs r visit_argz_Unparser.visit_argNs: 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 kwonlyargsrr kw_defaultskwarg) rr%rall_argsrrelementsads rvisit_argumentsz_Unparser.visit_argumentsTs ##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_keywordsC 88  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 r visit_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|j 5|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*)rxr-rs rvisit_MatchSingletonz_Unparser.visit_MatchSingletons TZZ(rcjdd5jfdj|jdddy#1swYyxYw)Nrcrlc&jdSrfrgr(srriz/_Unparser.visit_MatchSequence..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..write_key_pattern_pairs0DAq MM!  JJt  MM! rr^r_c&jdSrfrgr(srriz._Unparser.visit_MatchMapping..rrTstrictr_r)rrIrbrLr&restrh)rr%r/rIr3s` rvisit_MatchMappingz_Unparser.visit_MatchMappings  \\#s # (99D OO(&D$--5  99DJJt$ Rv;' ( ( (s A.BBc jtj|jj |jj dd5|j }jfdj||j}|rDfd}|rjdjfd|t||jddddy#1swYyxYw) Nrarbc&jdSrfrgr(srriz,_Unparser.visit_MatchClass..rrcZ|\}}j|dj|y)Nr`)rhr)r-rrrs rwrite_attr_patternz6_Unparser.visit_MatchClass..write_attr_patterns*$(MD'JJ$qz*MM'*rr_c&jdSrfrgr(srriz,_Unparser.visit_MatchClass..sDJJt,rTr1) rr9rOrxrrr&rb kwd_attrsrhrL kwd_patterns)rr%r&attrsr8s` 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..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*)F)rsrrrrrbrlrnrqrhrrvr{rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr rr rrrr r"r&r(r%r-r/r3r7rRrKrOrZrQrcrorrxrr}rrrrrrrrrrr9rCrLrrrrJrKrIrFrGrHrMr frozensetrrrrrrBrArrrrrrrrrrrrrrrrr!r#r'r*r4r=r?rB __classcell__)rrs@rrTrTs.3" H 1 "''#  ! Q=1 )  %%#$" &MM%" && O$JJ**& & .11 %:4+1:"V & $%"'- ++$+% %&1E$/LFQ8 -7^L&Q$T $ -P# # # # %' ,6%c BD          O ( E"                  __       W%L&$ F!4(G +{~~F [ !$* " %$+ 15f" %- . %")  ((. /UrrTc8t}|j|Sr*)rTr)ast_objrgs runparserGs{H >>' ""r)r rrrrc|tvr7t|xt|<}ddl}|jd|td|St d|d)Nrrrrzmodule 'ast' has no attribute 'rP)_deprecated_globalsglobalsrrrro)rzr-rs r __getattr__rKs` """5d";; $%4&M#  $ $/ $ :F x'8'8d'8'C3 #CE h GGI ,d=HJ 4\./ jsAFH    D  ))499DDYDY ZD $t(?(? TUs 3D//D8__main__)z rT)TF)r\)Tr*)Xrsysre_ast contextlibrrenumrrrrrXrrrrrrrrrrrrrobjectrrrrrr+rrrrpropertyrrr,rrr rrrrrr.r/r0rSbytesboolrrrrmrrr"r;r)r,r%modr. expr_contextr2r4r6ru float_info max_10_exprwr9_SINGLE_QUOTESrGrRrTrGrJpoprIrKrers)rzs0rrvs4 2,,5t5,8$v@@F" F.  0 34  05"J 7(&7(t8k8xU x)Y/HJ)Y/HJ14162 (d(dH8t 6x4 6 #ug # E84:t$ tCyl  $  .J 5 U 7Iz %C%E 3u3 uf, 5EJ:C::l::|::L: cnn//!34 4 g> /// gU gUR!#D  ')--  DV0 zFQsH<