£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>
U
    \                     @   sd   d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dl	m
Z
 dd ZG dd	 d	e
ZdS )
    )absolute_importN)Hub)logger)Integrationc                 C   sH   dd }|d|   |d|  |dt jdkr2dp4d  tj  d	S )
zThis is the default shutdown callback that is set on the options.
    It prints out a message to stderr that informs the user that some events
    are still pending and the process is waiting for them to flush out.
    c                 S   s   t j| d  d S )N
)sysstderrwrite)msg r   O/opt/alt/python38/lib/python3.8/site-packages/sentry_sdk/integrations/atexit.pyecho   s    zdefault_callback.<locals>.echoz6Sentry is attempting to send %i pending error messageszWaiting up to %s secondszPress Ctrl-%s to quitntZBreakCN)osnamer   r   flush)pendingtimeoutr   r   r   r   default_callback   s
    r   c                   @   s&   e Zd ZdZdddZedd ZdS )AtexitIntegrationatexitNc                 C   s   |d krt }|| _d S )N)r   callback)selfr   r   r   r   __init__"   s    zAtexitIntegration.__init__c                  C   s   t jdd } d S )Nc                  S   s@   t d tj} | t}|d k	r<t d | jj|jd d S )Nzatexit: got shutdown signalzatexit: shutting down client)r   )	r   debugr   mainZget_integrationr   Zclientcloser   )ZhubZintegrationr   r   r   	_shutdown+   s    


z/AtexitIntegration.setup_once.<locals>._shutdown)r   register)r   r   r   r   
setup_once(   s    zAtexitIntegration.setup_once)N)__name__
__module____qualname__
identifierr   staticmethodr    r   r   r   r   r      s   
r   )
__future__r   r   r   r   Zsentry_sdk.hubr   Zsentry_sdk.utilsr   Zsentry_sdk.integrationsr   ZAnyOptionalr   r   r   r   r   r   <module>   s   