
    gh	                         S SK r S SKJr  S SKr\(       a  S SKJrJrJr  S SKr " S S5      rS r	S r
\(       a!   " S S	\R                  R                  \5      rgS
 " 5       rg)    N)TYPE_CHECKING)AnyContextManagerOptionalc                   *    \ rS rSrSrS rS rS rSrg)
_InitGuard   zUsing the return value of sentry_sdk.init as a context manager and manually calling the __enter__ and __exit__ methods on the return value are deprecated. We are no longer maintaining this functionality, and we will remove it in the next major release.c                     Xl         g N_client)selfclients     b/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/sentry_sdk/_init_implementation.py__init___InitGuard.__init__   s        c                 N    [         R                  " U R                  S[        S9  U $ N   )
stacklevelcategory)warningswarn,_CONTEXT_MANAGER_DEPRECATION_WARNING_MESSAGEDeprecationWarning)r   s    r   	__enter___InitGuard.__enter__   s$    =='	
 r   c                     [         R                  " U R                  S[        S9  U R                  nUb  UR                  5         g g r   )r   r   r   r   r   close)r   exc_type	exc_valuetbcs        r   __exit___InitGuard.__exit__#   s;    =='	
 LL=GGI r   r   N)	__name__
__module____qualname____firstlineno__r   r   r   r%   __static_attributes__ r   r   r   r      s    	J 1
r   r   c                      g r   r,   r,   r   r   _check_python_deprecationsr.   0   s    
 	r   c                      [         R                  " U 0 UD6n[         R                  " 5       R                  U5        [	        5         [        U5      nU$ )zkInitializes the SDK and optionally integrations.

This takes the same arguments as the client constructor.
)
sentry_sdkClientget_global_scope
set_clientr.   r   )argskwargsr   rvs       r   _initr7   8   sE     //F!,,V4 	F	BIr   c                       \ rS rSrSrg)initL   r,   N)r'   r(   r)   r*   r+   r,   r   r   r9   r9   L   s    r   r9   c                      [         $ r   )r7   r,   r   r   <lambda>r<   T   s    Er   )r   typingr   r0   r   r   r   sentry_sdk.constsr   r.   r7   constsClientConstructorr9   r,   r   r   <module>rA      sX       44   F	
 z  22J  Dr   