
    QDb{                     :    d dl Z d dlZdad Zd Zd ZddZd	dZy)
    NFc                     t         rB	 t        j                  j                  | dz          t        j                  j	                          y y #  Y y xY w)N
)_debugsysstderrwriteflush)xs    3/usr/lib/python3/dist-packages/cupshelpers/debug.py
debugprintr      s?    	JJa$h'JJ 	s   A A
 
Ac                      t         S Nr        r   get_debuggingr   !   s    Mr   c                     | a y r   r   )ds    r   set_debuggingr   $   s    Fr   c                 H    t        dd       t        j                  |        y )NfatalExiting)typeend)nonfatalExceptionr   exit)exitcodes    r   fatalExceptionr   (   s    G3HHhr   c                 p   t               }t        d       t        d| z         t        j                         \  } }}t        j                  | |      }t        j                  |      D ]  }t        |j                                 t        |d   j                                t        |       t        |       y )NTz Caught %s exception.  Traceback:r   )	r   r   r   r   exc_info	tracebackformat_exception_only	format_tbstrip)r   r   r   valuetbextxtlines          r   r   r   ,   s    A42T9:T5"++T59E##B' #DJJM"#a!"1r   )   )z	non-fatalzContinuing anyway..)r   r!   r   r   r   r   r   r   r   r   r   <module>r*      s+   *  
r   