grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026 ü“qc+ ã@sXdZddlZGdd„deƒZGdd„deƒZGdd„deƒZdS) z= The objects used by the site module to add custom builtins. éNc@s7eZdZdd„Zdd„Zddd„ZdS)ÚQuittercCs||_||_dS)N)ÚnameÚeof)Úselfrr©rú2/opt/alt/python35/lib64/python3.5/_sitebuiltins.pyÚ__init__s zQuitter.__init__cCsd|j|jfS)NzUse %s() or %s to exit)rr)rrrrÚ__repr__szQuitter.__repr__Nc Cs,ytjjƒWnYnXt|ƒ‚dS)N)ÚsysÚstdinÚcloseÚ SystemExit)rÚcoderrrÚ__call__s zQuitter.__call__)Ú__name__Ú __module__Ú __qualname__rr rrrrrr s   rc@sReZdZdZdZffdd„Zdd„Zdd„Zd d „Zd S) Ú_Printerzninteractive prompt objects for printing the license text, a list of contributors and the copyright notice.écsJddl‰||_||_d|_‡‡fdd†|Dƒ|_dS)Nrcs2g|](}ˆD]}ˆjj||ƒ‘qqSr)ÚpathÚjoin)Ú.0ÚdirÚfilename)ÚfilesÚosrrú (s z%_Printer.__init__..)rÚ_Printer__nameÚ_Printer__dataÚ_Printer__linesÚ_Printer__filenames)rrÚdatarÚdirsr)rrrr#s     z_Printer.__init__cCs�|jr dSd}xP|jD]E}y*t|dƒ�}|jƒ}WdQRXPWqtk raYqXqW|su|j}|jdƒ|_t|jƒ|_dS)NÚrÚ ) rr ÚopenÚreadÚOSErrorrÚsplitÚlenÚ_Printer__linecnt)rr!rÚfprrrÚ__setup,s    z_Printer.__setupcCsH|jƒt|jƒ|jkr2dj|jƒSd|jfdSdS)Nr$z!Type %s() to see the full %s texté)Ú_Printer__setupr)rÚMAXLINESrr)rrrrr <s z_Printer.__repr__c Cs¾|jƒd}d}x¡y6x/t|||jƒD]}t|j|ƒq3WWntk rdPYqX||j7}d}x.|dkr¨t|ƒ}|dkr{d}q{W|dkrPqWdS)Nz0Hit Return for more, or q (and Return) to quit: rÚÚq)r0r1)r.Úranger/ÚprintrÚ IndexErrorÚinput)rÚpromptÚlinenoÚiÚkeyrrrrCs"       z_Printer.__call__N) rrrÚ__doc__r/rr.r rrrrrrs   rc@s.eZdZdZdd„Zdd„ZdS)Ú_Helpera3Define the builtin 'help'. This is a wrapper around pydoc.help that provides a helpful message when 'help' is typed at the Python interactive prompt. Calling help() at the Python prompt starts an interactive help session. Calling help(thing) prints help for the python object 'thing'. cCsdS)NzHType help() for interactive help, or help(object) for help about object.r)rrrrr bsz_Helper.__repr__cOsddl}|j||ŽS)Nr)ÚpydocÚhelp)rÚargsÚkwdsr<rrrres z_Helper.__call__N)rrrr:r rrrrrr;Xs  r;)r:r Úobjectrrr;rrrrÚs ;