grthtrhthjhtyjytjytkergtrhtrjytjerhrfh3 \+ ã@s@dZddlZGdd„deƒZGdd„deƒZGdd„deƒZdS) z= The objects used by the site module to add custom builtins. éNc@s&eZdZdd„Zdd„Zddd„ZdS) ÚQuittercCs||_||_dS)N)ÚnameÚeof)Úselfrr©rú%/usr/lib64/python3.6/_sitebuiltins.pyÚ__init__szQuitter.__init__cCsd|j|jfS)NzUse %s() or %s to exit)rr)rrrrÚ__repr__szQuitter.__repr__Nc Cs(ytjjƒWn YnXt|ƒ‚dS)N)ÚsysÚstdinÚcloseÚ SystemExit)rÚcoderrrÚ__call__s zQuitter.__call__)N)Ú__name__Ú __module__Ú __qualname__rr rrrrrr src@s:eZdZdZdZfffdd„Zdd„Zdd„Zd d „Zd S) Ú_Printerzninteractive prompt objects for printing the license text, a list of contributors and the copyright notice.écs4ddl‰||_||_d|_‡‡fdd„|Dƒ|_dS)Nrcs$g|]}ˆD]}ˆjj||ƒ‘q qSr)ÚpathÚjoin)Ú.0ÚdirÚfilename)ÚfilesÚosrrú (sz%_Printer.__init__..)rÚ_Printer__nameÚ_Printer__dataÚ_Printer__linesÚ_Printer__filenames)rrÚdatarÚdirsr)rrrr#s  z_Printer.__init__cCs~|jr dSd}xH|jD]>}y$t|dƒ�}|jƒ}WdQRXPWqtk rRYqXqW|sb|j}|jdƒ|_t|jƒ|_dS)NÚrÚ ) rr ÚopenÚreadÚOSErrorrÚsplitÚlenÚ_Printer__linecnt)rr!rÚfprrrÚ__setup,s    z_Printer.__setupcCs8|jƒt|jƒ|jkr$dj|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‚y,x&t|||jƒD]}t|j|ƒq&WWntk rTPYqX||j7}d}x |dkr„t|ƒ}|dkrfd}qfW|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<rrrresz_Helper.__call__N)rrrr:r rrrrrr;Xsr;)r:r Úobjectrrr;rrrrÚs;