
    ^h%                     x    S SK Jr  S SKrS SKJr  S SKJr  SSKJr  SSKJ	r	  S r
SS	 jrSS
 jrS r\S 5       rg)    )print_functionN)contextmanager)io   )	set_trace)post_mortemc                  L    [         R                  =[        l        [         l        g N)sys
__stdout__r   stdout     E/home/james-whalen/.local/lib/python3.13/site-packages/ipdb/stdout.pyupdate_stdoutr   	   s     ^^+BI
r   c                 r    [        5         U c  [        R                  " 5       R                  n [	        X5        g r
   )r   r   	_getframef_backr   )framecontexts     r   
sset_tracer      s%    O}&&er   c                 .    [        5         [        U 5        g r
   )r   r   )tbs    r   spost_mortemr      s    OOr   c                  6    [        [        R                  5        g r
   )r   r   last_tracebackr   r   r   spmr      s    ##$r   c               #      #     S v   g ! [          aL    [        R                  " 5       u  pn[        UR	                  5       [        R
                  S9  [        U5         NVf = f! f = f7f)N)file)	Exceptionr   exc_infoprint__repr__stderrr   )emr   s      r   slaunch_ipdb_on_exceptionr'      sS      	  <<>bajjl,R
 	s2   A'	 A'AAA" AA" "A$$A')N   r
   )
__future__r   r   
contextlibr   IPython.utilsr   __main__r   r   r   r   r   r   r'   r   r   r   <module>r-      s?    % 
 %   !,

%  r   