|
Server : LiteSpeed System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : idnco5810 ( 1093) PHP Version : 8.2.29 Disable Function : NONE Directory : /usr/lib/python3/dist-packages/pytz/__pycache__/ |
Upload File : |
o
�<<b# � @ sb d Z g d�ZG dd� de�ZG dd� dee�ZG dd� de�ZG dd � d e�ZG d
d� de�ZdS )
z#
Custom exceptions raised by pytz.
)�UnknownTimeZoneError�InvalidTimeError�AmbiguousTimeError�NonExistentTimeErrorc @ � e Zd ZdZdS )�Errorz8Base class for all exceptions raised by the pytz libraryN��__name__�
__module__�__qualname__�__doc__� r r �1/usr/lib/python3/dist-packages/pytz/exceptions.pyr � r c @ r )r a� Exception raised when pytz is passed an unknown timezone.
>>> isinstance(UnknownTimeZoneError(), LookupError)
True
This class is actually a subclass of KeyError to provide backwards
compatibility with code relying on the undocumented behavior of earlier
pytz releases.
>>> isinstance(UnknownTimeZoneError(), KeyError)
True
And also a subclass of pytz.exceptions.Error, as are other pytz
exceptions.
>>> isinstance(UnknownTimeZoneError(), Error)
True
Nr r r r r
r s r c @ r )r z'Base class for invalid time exceptions.Nr r r r r
r &