grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026ó 'VFSûʸÔãól•SrSSKrSSKrSSKrSSKJrJr /SQr"SS5r"SS\5r "S S 5r SS jr \ S :XapSSK r \ R"5r\R!S SSS9 \R#5r\R&(d\R(R*(aSrOSr\ "\5 gg)z?Utilities needed to emulate Python's interactive interpreter. éN)ÚCommandCompilerÚcompile_command)ÚInteractiveInterpreterÚInteractiveConsoleÚinteractrcóT•\rSrSrSrS SjrSSjrSrS SjrSr S r S r S r S r g)rézçBase class for InteractiveConsole. This class deals with parsing and interpreter state (the user's namespace); it doesn't deal with input buffering or prompting or input file naming (the filename is always passed in explicitly). Ncó>•UcSSS.nXl[5Ulg)zìConstructor. The optional 'locals' argument specifies a mapping to use as the namespace in which code will be executed; it defaults to a newly created dictionary with key "__name__" set to "__console__" and key "__doc__" set to None. NÚ __console__)Ú__name__Ú__doc__)ÚlocalsrÚcompile)Úselfrs Ú+/opt/alt/python313/lib64/python3.13/code.pyÚ__init__ÚInteractiveInterpreter.__init__s"€ð ‰>Ø"/¸DÑAˆFØŒ Ü&Ó(ˆ� ócó¨•URXU5nUcgUR U5 g![[[4a UR X!S9 gf=f)aCompile and run some source in the interpreter. Arguments are as for compile_command(). One of several things can happen: 1) The input is incorrect; compile_command() raised an exception (SyntaxError or OverflowError). A syntax traceback will be printed by calling the showsyntaxerror() method. 2) The input is incomplete, and more input is required; compile_command() returned None. Nothing happens. 3) The input is complete; compile_command() returned a code object. The code is executed by calling self.runcode() (which also handles run-time exceptions, except for SystemExit). The return value is True in case 2, False in the other cases (unless an exception is raised). The return value can be used to decide whether to use sys.ps1 or sys.ps2 to prompt the next line. )ÚsourceFT)rÚ OverflowErrorÚ SyntaxErrorÚ ValueErrorÚshowsyntaxerrorÚruncode)rrÚfilenameÚsymbolÚcodes rÚ runsourceÚ InteractiveInterpreter.runsource(s^€ð0 Ø—<‘< °&Ó9ˆDð ‰<àð � ‰ �TÔØøôœ{¬JÐ7ó à × Ñ  Ð Ñ 9Ùð ús‚*ª$AÁAcór•[XR5 g![a e UR5 g=f)aKExecute a code object. When an exception occurs, self.showtraceback() is called to display a traceback. All exceptions are caught except SystemExit, which is reraised. A note about KeyboardInterrupt: this exception may occur elsewhere in this code, and may not always be caught. The caller should be prepared to deal with it. N)ÚexecrÚ SystemExitÚ showtraceback©rrs rrÚInteractiveInterpreter.runcodeOs1€ð !Ü �—{‘{Õ #øÜó Ø ð !Ø × Ñ Ö ús‚˜6c óâ•[R"5up4nU(a[U[5(aXlUR SS5nUR X4SU5 S=n=pEg!S=n=pEf=f)a@Display the syntax error that just occurred. This doesn't display a stack trace because there isn't one. If a filename is given, it is stuffed in the exception instead of what was there before (because Python's parser always uses "" when reading from a string). The output is written by self.write(), below. rÚN)ÚsysÚexc_infoÚ issubclassrrÚpopÚ_showtraceback)rrÚkwargsÚtypÚvalueÚtbrs rrÚ&InteractiveInterpreter.showsyntaxerrorbsk€ð $Ü Ÿ\š\›^‰NˆC˜ÞœJ s¬K×8Ñ8Ø!)”Ø—Z‘Z ¨"Ó-ˆFØ × Ñ  ¨D°&Ô 9à#Ð #ˆCÐ #�%˜"ø˜tÐ #ˆCÐ #�%˜"ús ‚AA'Á'A.cóŽ•[R"5upnURXURS5 S=n=p#g!S=n=p#f=f)z–Display the exception that just occurred. We remove the first stack item because it is our own code. The output is written by self.write(), below. r(N)r)r*r-Útb_next)rr/r0r1s rr$Ú$InteractiveInterpreter.showtracebackwsK€ð $Ü Ÿ\š\›^‰NˆC˜Ø × Ñ  ¨B¯J©J¸Ô ;à#Ð #ˆCÐ #�%˜"ø˜tÐ #ˆCÐ #�%˜"ús ‚5=½Acó¼•U[lU[lURU5nUR 5nU(aVU[ LaMUR (d<URb/[U5UR:¼aXRRS- UlURU5=[l =[l n[R[RLaURXU5 g[R"XU5 g![a e[a¾nSUlURUR"R$5n['S[R(S9 [R"[+U5XfR"5 ['[R(S9 ['S[R(S9 [R"XU5 SnAgSnAff=f)NézError in sys.excepthook:)ÚfilezOriginal exception was:)r)Ú last_typeÚlast_tracebackÚwith_tracebackÚ splitlinesrÚtextÚlinenoÚlenÚlast_excÚ last_valueÚ excepthookÚ__excepthook__Ú _excepthookr#Ú BaseExceptionÚ __context__Ú __traceback__r4ÚprintÚstderrÚtype)rr/r0r1rÚlinesÚes rr-Ú%InteractiveInterpreter._showtraceback…sP€ØŒŒ ØŒÔØ×$Ñ$ RÓ(ˆà×!Ñ!Ó#ˆÞ �sœkÒ)ØŸ Ÿ  u§|¡|Ñ'?ܘ“J %§,¡,Ó.ØŸ|™|¨aÑ/Ñ0ˆEŒJØ05×0DÑ0DÀRÓ0HÐHŒŒ ÐH”s”~¨Ü �>‰>œS×/Ñ/Ò /Ø × Ñ ˜S¨Õ ,ð 3Ü—’˜s¨2Õ.øÜó ØÜ ó 3Ø $�” Ø×$Ñ$ Q§_¡_×%<Ñ%<Ó=�ÜÐ0´s·z±zÒBÜ×"Ò"¤4¨£7¨A¯©Ô?Üœ3Ÿ:™:Ò&ÜÐ/´c·j±jÒAÜ×"Ò" 3¨r×2Ñ2ûð 3úsÃ1D Ä GÄB4GÇGcór•[R"XU5nURSRU55 g)Nr()Ú tracebackÚformat_exceptionÚwriteÚjoin)rr/r0r1rKs rrDÚ"InteractiveInterpreter._excepthook¢s*€ô×*Ò*¨3°rÓ:ˆØ � ‰ �2—7‘7˜5“>Õ"rcóB•[RRU5 g)z}Write a string. The base implementation writes to sys.stderr; a subclass may replace this with a different implementation. N)r)rIrQ)rÚdatas rrQÚInteractiveInterpreter.write¨s€ô � ‰ ×јÕr)rr©N)zÚsingle)r Ú __module__Ú __qualname__Ú__firstlineno__r rrrrr$r-rDrQÚ__static_attributes__©rrrrs0†ñô )ô%òN!ô&$ò* $ò3ò:#õ rrcóN•\rSrSrSrS SS.SjjrSrS SjrSS jrSS jr S r g)ré²zÂClosely emulate the behavior of the interactive Python interpreter. This class builds on InteractiveInterpreter and adds prompting using the familiar sys.ps1 and sys.ps2, and input buffering. NF©Ú local_exitcóf•[RX5 X lX0lUR 5 g)z×Constructor. The optional locals argument will be passed to the InteractiveInterpreter base class. The optional filename argument should specify the (file)name of the input stream; it will show up in tracebacks. N)rrrraÚ resetbuffer)rrrras rrÚInteractiveConsole.__init__ºs(€ô ×'Ñ'¨Ô5Ø Œ Ø$ŒØ ×ÑÕrcó•/Ulg)zReset the input buffer.N)Úbuffer©rs rrcÚInteractiveConsole.resetbufferÉs €àˆ� rc ó •[R [R SnUcSUR S[R <S[R <SU<SURR<S 3 5 O$U(aUR S [U5-5 S nSnSnUR(ar[[S 5(a$[Rn[S 5[l [[S 5(a$[Rn[S 5[lU(a[RnO[RnUR!U5nUR#U5nMN![a S[lGN~f=f![a S[lGN‰f=f![$a UR S5 Omf=f![&a& UR S5 UR)5 S nNŠ[*a.n UR(aUR S5 Sn A O U eSn A ff=fUb U[l Ub U[lUc)UR SURR-5 gUS:waUR S U-5 gg!Ub U[l Ub U[lUc)UR SURR-5 fUS:waUR S U-5 ff=f)a0Closely emulate the interactive Python console. The optional banner argument specifies the banner to print before the first interaction; by default it prints a banner similar to the one printed by the real Python interpreter, followed by the current class name in parentheses (so as not to confuse this with the real interpreter -- since it's so close!). The optional exitmsg argument specifies the exit message printed when exiting. Pass the empty string to suppress printing an exit message. If exitmsg is not given or None, a default message is printed. z>>> z... zFType "help", "copyright", "credits" or "license" for more information.NzPython z on Ú z (z) z%s rÚexitÚquitz KeyboardInterrupt znow exiting %s... r()r)Úps1ÚAttributeErrorÚps2rQÚversionÚplatformÚ __class__r ÚstrraÚhasattrÚbuiltinsrkÚQuitterrlÚ raw_inputÚpushÚEOFErrorÚKeyboardInterruptrcr#) rÚbannerÚexitmsgÚcprtÚmoreÚ_exitÚ_quitÚpromptÚlinerLs rrÚInteractiveConsole.interactÍsi€ð  Ü �GŠGð Ü �GŠGðXˆØ ‰>Ø �JŠJÜŸ œ ¤S§\¤\³4ØŸ™×/Ô/ð1õ 2öØ �J‰J�v¤ F£ Ñ+Ô ,ØˆðˆØˆà �?�?Ü”x ×(Ñ(Ü Ÿ ™ �Ü '¨£”” ä”x ×(Ñ(Ü Ÿ ™ �Ü '¨£”” ð# -Øð ÞÜ!$§¡™ä!$§¡˜ð/Ø#Ÿ~™~¨fÓ5˜ð $Ÿy™y¨›˜ñøôKó ØŒC�Gð ûôó ØŒC�Gð ûôR$óØŸ ™  4Ô(Ùðûô )óØ—J‘JÐ6Ô7Ø×$Ñ$Ô&Ø’DÜ!ó Ø——ØŸ ™  4Ô(Üà˜ûð  úðÑ Ø %”” àÑ Ø %”” à‰Ø— ‘ Ð0°4·>±>×3JÑ3JÑJÕKؘB“Ø— ‘ ˜6 GÑ+Õ,ðøðÑ Ø %”” àÑ Ø %”” à‰Ø— ‘ Ð0°4·>±>×3JÑ3JÑJÕKؘB“Ø— ‘ ˜6 GÑ+Õ,ðús•‚E8“FÄ)JÄ+(GÅF0Å%GÅ6JÅ8FÆFÆF-Æ,F-Æ0GÇ GÇ JÇ GÇGÇ-H7Ç>JÈ H7È "H2È+JÈ0H2È2H7È7JÊA%LcóÞ•URRU5 SRUR5nUc URnUR XBUS9nU(dUR 5 U$)a/Push a line to the interpreter. The line should not have a trailing newline; it may have internal newlines. The line is appended to a buffer and the interpreter's runsource() method is called with the concatenated contents of the buffer as source. If this indicates that the command was executed or invalid, the buffer is reset; otherwise, the command is incomplete, and the buffer is left as it was after the line was appended. The return value is 1 if more input is required, 0 if the line was dealt with in some way (this is the same as runsource()). rj)r)rfÚappendrRrrrc)rr‚rÚ_symbolrr~s rrxÚInteractiveConsole.push(s]€ð � ‰ ×ј4Ô Ø—‘˜4Ÿ;™;Ó'ˆØ Ñ Ø—}‘}ˆHØ�~‰~˜f°wˆ~Ð?ˆÞØ × Ñ Ô Øˆ rcó•[U5$)aWrite a prompt and read a line. The returned line does not include the trailing newline. When the user enters the EOF key sequence, EOFError is raised. The base implementation uses the built-in function input(); a subclass may replace this with a different implementation. )Úinput)rr�s rrwÚInteractiveConsole.raw_input?s€ô�V‹}Ðr)rfrra)Nz )NN)NrX)r() r rYrZr[r rrcrrxrwr\r]rrrr²s)†ñð Èö òôY-ôv÷. rrcó*•\rSrSrSrSrSSjrSrg)rviMcóV•Xl[RS:XaSUlgSUlg)NÚwin32zCtrl-Z plus ReturnzCtrl-D (i.e. EOF))Únamer)rqÚeof)rrŽs rrÚQuitter.__init__Ns!€ØŒ Ü �<‰<˜7Ó "Ø+ˆD�Hà*ˆD�Hrcó<•SURSURS3$)NzUse z or z to exit)rŽr�rgs rÚ__repr__ÚQuitter.__repr__Us€Ø�d—i‘i�[  T§X¡X J¨hÐ7Ð7rNcó•[U5erW)r#r%s rÚ__call__ÚQuitter.__call__Xs €Ü˜ÓÐr)r�rŽrW)r rYrZr[rr’r•r\r]rrrvrvMs†ò+ò8÷rrvcóv•[X$S9nUbXlOSSKnUR X5 g![a Nf=f)a8Closely emulate the interactive Python interpreter. This is a backwards compatible interface to the InteractiveConsole class. When readfunc is not specified, it attempts to import the readline module to enable GNU readline if it is available. Arguments (all optional, all default to None): banner -- passed to InteractiveConsole.interact() readfunc -- if not None, replaces InteractiveConsole.raw_input() local -- passed to InteractiveInterpreter.__init__() exitmsg -- passed to InteractiveConsole.interact() local_exit -- passed to InteractiveConsole.__init__() r`Nr)rrwÚreadlineÚ ImportErrorr)r{ÚreadfuncÚlocalr|raÚconsoler˜s rrr\sF€ô ! Ñ>€GØÑØ$Õð Û ð ×Ñ�VÕ%øôó Ù ð ús •+« 8·8Ú__main__z-qÚ store_truez*don't print version and copyright messages)ÚactionÚhelpr()NNNNF)r rur)rOÚcodeoprrÚ__all__rrrvrr ÚargparseÚArgumentParserÚparserÚ add_argumentÚ parse_argsÚargsÚqÚflagsÚquietr{r]rrÚr¬s·ðñóÛ Ûß3ò €÷^ñ^ôBXÐ/ôX÷v ñ ô&ð6 ˆzÓÛà × $Ò $Ó &€FØ ×ј \ØIðñKà × Ñ Ó €DØ ‡v‡v�—‘——؉àˆÙ ˆVÕðr