
    F\h8                     R    S r SSKr " S S\5      r " S S\5      r " S S\5      rg)	z=
The objects used by the site module to add custom builtins.
    Nc                   *    \ rS rSrS rS rSS jrSrg)Quitter   c                     Xl         X l        g Nnameeof)selfr	   r
   s      $/usr/lib/python3.13/_sitebuiltins.py__init__Quitter.__init__   s    	    c                 @    SU R                   < SU R                  < S3$ )NzUse z() or z to exitr   r   s    r   __repr__Quitter.__repr__   s    +/99dhh??r   Nc                 d     [         R                  R                  5         [        U5      e!    N= fr   )sysstdinclose
SystemExit)r   codes     r   __call__Quitter.__call__   s,    	IIOO 	s   + /)r
   r	   r   )__name__
__module____qualname____firstlineno__r   r   r   __static_attributes__ r   r   r   r      s    @r   r   c                   8    \ rS rSrSrSrS
S jrS rS rS r	Sr
g	)_Printer   zjinteractive prompt objects for printing the license text, a list of
contributors and the copyright notice.   c           	          SS K nXl        X l        S U l        U VVs/ s H(  nU  H  nUR                  R                  Xg5      PM      M*     snnU l        g s  snnf Nr   )os_Printer__name_Printer__data_Printer__linespathjoin_Printer__filenames)r   r	   datafilesdirsr(   dirfilenames           r   r   _Printer.__init__#   sU    '+3'+,1 GGLL7,1 8'+3 3s   /Ac                 d   U R                   (       a  g S nU R                   H'  n [        USS9 nUR                  5       nS S S 5          O   U(       d  U R
                  nUR                  S5      U l         [        U R                   5      U l        g ! , (       d  f       NV= f! [         a     M  f = f)Nzutf-8)encoding
)	r+   r.   openreadOSErrorr*   splitlen_Printer__linecnt)r   r/   r3   fps       r   __setup_Printer.__setup,   s    <<((H(W5779D 6	 ) ;;Dzz$'T\\* 65  s(   
B!B B!
B	B!!
B/.B/c                     U R                  5         [        U R                  5      U R                  ::  a  SR	                  U R                  5      $ SU R
                  4S-  -  $ )Nr7   z!Type %s() to see the full %s text   )_Printer__setupr<   r+   MAXLINESr-   r)   r   s    r   r   _Printer.__repr__<   sI    t||-99T\\**64;;.:JKKr   c                 &   U R                  5         SnSn  [        X"U R                  -   5       H  n[        U R                  U   5        M     X R                  -  nS nUc  [        U5      nUS;  a  S nUc  M  US:X  a  g  Mm  ! [         a     g f = f)Nz0Hit Return for more, or q (and Return) to quit: r   ) qrH   )rC   rangerD   printr+   input
IndexError)r   promptlinenoikeys        r   r   _Printer.__call__C   s    Cv'=>A$,,q/* ?
 --'k-C)+" k #:    s   7B 
BB)__data__filenames	__linecnt__lines__nameN)r!   r!   )r   r   r   r   __doc__rD   r   rC   r   r   r    r!   r   r   r#   r#      s#    . H3+ Lr   r#   c                   $    \ rS rSrSrS rS rSrg)_HelperX   a  Define 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'.
c                     g)NzHType help() for interactive help, or help(object) for help about object.r!   r   s    r   r   _Helper.__repr__b   s    8r   c                 .    SS K nUR                  " U0 UD6$ r'   )pydochelp)r   argskwdsr^   s       r   r   _Helper.__call__e   s    zz4(4((r   r!   N)r   r   r   r   rW   r   r   r    r!   r   r   rY   rY   X   s    8)r   rY   )rW   r   objectr   r#   rY   r!   r   r   <module>rd      s4    f  8v 8v)f )r   