
     h                         d dl m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	i Z
eee	efdZd ZdS )   )pytz_importedc                       e Zd ZdZdS )PytzUsageWarninga^  Warning raised when accessing features specific to ``pytz``'s interface.

    This warning is used to direct users of ``pytz``-specific features like the
    ``localize`` and ``normalize`` methods towards using the standard
    ``tzinfo`` interface, so that these shims can be replaced with one of the
    underlying libraries they are wrapping.
    N__name__
__module____qualname____doc__     ]/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/pytz_deprecation_shim/_exceptions.pyr   r      s           r   r   c                       e Zd ZdZdS )UnknownTimeZoneErrorz6Raised when no time zone is found for a specified key.Nr   r   r   r   r   r      s        @@@@r   r   c                       e Zd ZdZdS )InvalidTimeErrorz8The base class for exceptions related to folds and gaps.Nr   r   r   r   r   r      s        BBBBr   r   c                       e Zd ZdZdS )AmbiguousTimeErrorzCException raised when ``is_dst=None`` for an ambiguous time (fold).Nr   r   r   r   r   r      s        MMMMr   r   c                       e Zd ZdZdS )NonExistentTimeErrorzDException raised when ``is_dst=None`` for a non-existent time (gap).Nr   r   r   r   r   r      s        NNNNr   r   c           
          t           st                      sd S dd l} G d d| |j                  } G d d||j                  } G d d||j                  } G d d	||j                  }t                               | |||||||i           d S )
N    c                       e Zd ZdS )3_make_pytz_derived_errors.<locals>.InvalidTimeErrorNr   r   r	   r   r   r   r   r   ,           r   r   c                       e Zd ZdS )5_make_pytz_derived_errors.<locals>.AmbiguousTimeErrorNr   r   r   r   r   r   /   r   r   r   c                       e Zd ZdS )7_make_pytz_derived_errors.<locals>.NonExistentTimeErrorNr   r   r   r   r   r   2            	r   r   c                       e Zd ZdS )7_make_pytz_derived_errors.<locals>.UnknownTimeZoneErrorNr   r   r   r   r   r"   7   r    r   r   )PYTZ_BASE_ERROR_MAPPINGr   pytzr   r   r   r   update)	InvalidTimeError_AmbiguousTimeError_NonExistentTimeError_UnknownTimeZoneError_r$   r   r   r   r   s	            r   _make_pytz_derived_errorsr*   !   s&     moo KKK    ,d.C       0$2I       t8  
    t8  
 ""/!3!#7!#7		
    r   c                 j    t                       t                              | |           } ||          S )N)r*   r#   get)exc_typemsgout_exc_types      r   get_exceptionr0   F   s3    *..xBBL<r   N)_commonr   RuntimeWarningr   KeyErrorr   	Exceptionr   r   r   r#   r*   r0   r   r   r   <module>r5      sO   " " " " " "    ~   A A A A A8 A A AC C C C Cy C C CN N N N N) N N NO O O O O+ O O O   '*..	" " " "J    r   