o ?Og8 @s@dZddlZGdddeZGdddeZGdddeZdS) z= The objects used by the site module to add custom builtins. Nc@s&eZdZddZddZdddZdS) QuittercCs||_||_dSNnameeof)selfrrr4/opt/alt/python310/lib64/python3.10/_sitebuiltins.py__init__s zQuitter.__init__cCsd|j|jfS)NzUse %s() or %s to exitrrrrr __repr__szQuitter.__repr__NcCs&z tjWt|Yt|r)sysstdinclose SystemExit)rcoderrr __call__s  zQuitter.__call__r)__name__ __module__ __qualname__r r rrrrr r src@s6eZdZdZdZd ddZddZdd Zd d Zd S)_Printerzninteractive prompt objects for printing the license text, a list of contributors and the copyright notice.rcs4ddl||_||_d|_fdd|D|_dS)Nrcs$g|]}D] }j||qqSr)pathjoin).0dirfilenamefilesosrr (s z%_Printer.__init__..)r_Printer__name_Printer__data_Printer__lines_Printer__filenames)rrdatardirsrrr r #s  z_Printer.__init__c Cs|jrdSd}|jD](}zt|dd }|}Wdn1s"wYWn ty2Yq w|s8|j}|d|_t|j|_dS)Nzutf-8)encoding ) r#r$openreadOSErrorr"splitlen_Printer__linecnt)rr%rfprrr __setup,s     z_Printer.__setupcCs4|t|j|jkrd|jSd|jfdS)Nr(z!Type %s() to see the full %s text)_Printer__setupr-r#MAXLINESrr!r rrr r <s z_Printer.__repr__cCs|d}d} zt|||jD] }t|j|qWn ty'YdSw||j7}d}|durAt|}|dvr=d}|dus3|dkrGdSq )Nz0Hit Return for more, or q (and Return) to quit: r)qr6)r2ranger3printr# IndexErrorinput)rpromptlinenoikeyrrr rCs*  z_Printer.__call__N)rr) rrr__doc__r3r r2r rrrrr rs   rc@s eZdZdZddZddZdS)_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.rr rrr r bsz_Helper.__repr__cOsddl}|j|i|S)Nr)pydochelp)rargskwdsrArrr resz_Helper.__call__N)rrrr?r rrrrr r@Xs r@)r?r objectrrr@rrrr s  ;