
    f                     *    d Z ddlZddlmZ ddZd Zy)z A payload based version of page.    N)get_ipythonc                     t        d|      }t               }t        | t              r| }nd| i}t        d||      }|j                  j                  |       y)aj  Print a string, piping through a pager.

    This version ignores the screen_lines and pager_cmd arguments and uses
    IPython's payload system instead.

    Parameters
    ----------
    strng : str or mime-dict
        Text to page, or a mime-type keyed dict of already formatted data.
    start : int
        Starting line at which to place the display.
    r   z
text/plainpage)sourcedatastartN)maxr   
isinstancedictpayload_managerwrite_payload)strngr   screen_lines	pager_cmdshellr   payloads          S/var/www/cvtools/html/venv/lib/python3.12/site-packages/IPython/core/payloadpage.pyr   r      sX      5MEME%u%
G
 
''0    c                  P    t        j                  d       ddlm}  t        | _        y)zdDEPRECATED, use show_in_pager hook

    Install this version of page as IPython.core.page.page.
    zninstall_payload_page is deprecated.
    Use `ip.set_hook('show_in_pager, page.as_hook(payloadpage.page))`
    r   )r   N)warningswarnIPython.corer   )corepages    r   install_payload_pager   *   s!    
 MM  	 .HMr   )r   r   N)__doc__r   IPython.core.getipythonr   r   r    r   r   <module>r      s    &
  /1>	r   