U e5d+ @s<ddlZGdddeZGdddeZGdddeZdS)Nc@s&eZdZddZddZdddZdS) QuittercCs||_||_dSNnameeof)selfrrr%/usr/lib64/python3.8/_sitebuiltins.py__init__szQuitter.__init__cCsd|j|jfS)NzUse %s() or %s to exitrrrrr __repr__szQuitter.__repr__NcCs(ztjWn YnXt|dSr)sysstdinclose SystemExit)rcoderrr __call__s zQuitter.__call__)N)__name__ __module__ __qualname__r r rrrrr r src@s2eZdZdZd ddZddZddZd d Zd S) _Printerrcs4ddl||_||_d|_fdd|D|_dS)Nrcs$g|]}D]}j||q qSr)pathjoin).0dirfilenamefilesosrr (sz%_Printer.__init__..)r_Printer__name_Printer__data_Printer__lines_Printer__filenames)rrdatardirsrrr r #s z_Printer.__init__c Cs~|jr dSd}|jD]B}z(t|d}|}W5QRXWqXWqtk rTYqXq|sb|j}|d|_t|j|_dS)Nr ) r#r$openreadOSErrorr"splitlen_Printer__linecnt)rr%rfprrr __setup,s    z_Printer.__setupcCs8|t|j|jkr$d|jSd|jfdSdS)Nr(z!Type %s() to see the full %s text)_Printer__setupr-r#MAXLINESrr!r rrr r <s z_Printer.__repr__cCs|d}d}z(t|||jD]}t|j|q"Wntk rPYqYqX||j7}d}|dkr~t|}|dkr`d}q`|dkrqqdS)Nz0Hit Return for more, or q (and Return) to quit: r)qr5)r2ranger3printr# IndexErrorinput)rpromptlinenoikeyrrr rCs   z_Printer.__call__N)rr)rrrr3r r2r rrrrr rs  rc@seZdZddZddZdS)_HelpercCsdS)NzHType help() for interactive help, or help(object) for help about object.rr rrr r bsz_Helper.__repr__cOsddl}|j||S)Nr)pydochelp)rargskwdsr?rrr resz_Helper.__call__N)rrrr rrrrr r>Xs r>)r objectrrr>rrrr  s;