
    .PhY                         d dl Z d dlZ G d de          Z G d de          Z G d de          Z G d d	e          Z G d
 de          Z G d dee          Z	 G d d          Z
 G d d          ZdS )    Nc                       e Zd ZdZdS )KeyringErrorz$Base class for exceptions in keyringN__name__
__module____qualname____doc__     N/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/keyring/errors.pyr   r      s        ....r   r   c                       e Zd ZdZdS )PasswordSetErrorz&Raised when the password can't be set.Nr   r
   r   r   r   r   	   s        0000r   r   c                       e Zd ZdZdS )PasswordDeleteErrorz*Raised when the password can't be deleted.Nr   r
   r   r   r   r      s        4444r   r   c                       e Zd ZdZdS )	InitErrorz0Raised when the keyring could not be initialisedNr   r
   r   r   r   r      s        ::::r   r   c                       e Zd ZdZdS )KeyringLockedz(Raised when the keyring failed unlockingNr   r
   r   r   r   r      s        2222r   r   c                       e Zd ZdZdS )NoKeyringErrorz'Raised when there is no keyring backendNr   r
   r   r   r   r      s        1111r   r   c                   (    e Zd ZdZefdZd Zd ZdS )ExceptionRaisedContextz[
    An exception-trapping context that indicates whether an exception was
    raised.
    c                 Z    t          j        dt          d           || _        d | _        d S )NzHExceptionRaisedContext is deprecated; use `jaraco.context.ExceptionTrap`   )
stacklevel)warningswarnDeprecationWarningExpectedExceptionexc_info)selfr   s     r   __init__zExceptionRaisedContext.__init__#   s9    V	
 	
 	
 	

 "3r   c                 X    t                               t                    | _        | j        S N)object__new__ExceptionInfor    r!   s    r   	__enter__z ExceptionRaisedContext.__enter__,   s    }55}r   c                 v     | j         j        |  | j         j        ot          | j         j        | j                  S r$   )r    r"   type
issubclassr   )r!   r    s     r   __exit__zExceptionRaisedContext.__exit__0   s?    ))}! 
jM 6'
 '
 	
r   N)r   r   r   r	   	Exceptionr"   r)   r-   r
   r   r   r   r      sU         
 *3      
 
 
 
 
r   r   c                       e Zd Zd Zd ZeZdS )r'   c                 P    |st          j                    }|\  | _        | _        }d S r$   )sysr    r+   value)r!   info_s      r   r"   zExceptionInfo.__init__8   s)     	"<>>D#' 	4:qqqr   c                 *    t          | j                  S )z6
        Return True if an exception occurred
        )boolr+   r(   s    r   __bool__zExceptionInfo.__bool__=   s     DIr   N)r   r   r   r"   r7   __nonzero__r
   r   r   r'   r'   7   s3        ( ( (
   KKKr   r'   )r1   r   r.   r   r   r   r   r   RuntimeErrorr   r   r'   r
   r   r   <module>r:      so   



 / / / / /9 / / /1 1 1 1 1| 1 1 15 5 5 5 5, 5 5 5; ; ; ; ; ; ; ;3 3 3 3 3L 3 3 32 2 2 2 2\< 2 2 2
 
 
 
 
 
 
 
4         r   