
    fi                         d dl mZ d dlZd dlZej                  dk\  rdZndZ e ej                  dd      e      Zd	 Z	d
gZ
y)    )print_functionN3gettextugettextzcommand-not-foundT)fallbackc                    	 	  |         t        j                  d       y# t         $ r}t        t        d      t        j                         t        |t        j                         t        t        d      t        j                         t        t        j                         t        t        d      |z  t        j                         t        t        d      t        j
                  z  t        j                         	 ddl}|j                  g dt        j                  	       n# t        t        f$ r Y nw xY wt        t        d
      t        j                         t        t        j                         t        |t        j                         	 ddl
}|j                          n# t        $ r Y nw xY wY d}~d}~ww xY w# t        j                  d       w xY w)z Calls callback and catches all exceptions.
    When something bad happens prints a long error message
    with bug report information and exits the programzBSorry, command-not-found has crashed! Please file a bug report at:)filez9Please include the following information with the report:zcommand-not-found version: %szPython version: %d.%d.%d %s %dr   N)lsb_releasez-iz-dz-rz-c)stdoutzException information:   )	Exceptionprint_sysstderrversion_info
subprocesscallImportErrorOSError	traceback	print_excexit)callbackbug_report_urlversionexr   r   s         6/usr/lib/python3/dist-packages/CommandNotFound/util.pycrash_guardr      sI   	J, 	+  	!XY`c`j`jk.szz2!OPWZWaWabszz"!34w>SZZP!458H8HHszzZ! GPSPZPZ[) !,-CJJ?szz""3::& ##% %	* 	sp     
G
CG'D,+G,D>;G=D>>AGF0/G0	F<9G;F<<G?G G

G G$r   )
__future__r   r   r   r   _gettext_methodgetattrtranslationr   r   __all__     r   <module>r'      sS    &  
 ;;#O OG 3dC_U> /r&   