D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
lib
/
python3.6
/
site-packages
/
pytz
/
Filename :
exceptions.py
back
Copy
''' Custom exceptions raised by pytz. ''' __all__ = [ 'UnknownTimeZoneError', 'InvalidTimeError', 'AmbiguousTimeError', 'NonExistentTimeError', ] class UnknownTimeZoneError(KeyError): '''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 ''' pass class InvalidTimeError(Exception): '''Base class for invalid time exceptions.''' class AmbiguousTimeError(InvalidTimeError): '''Exception raised when attempting to create an ambiguous wallclock time. At the end of a DST transition period, a particular wallclock time will occur twice (once before the clocks are set back, once after). Both possibilities may be correct, unless further information is supplied. See DstTzInfo.normalize() for more info ''' class NonExistentTimeError(InvalidTimeError): '''Exception raised when attempting to create a wallclock time that cannot exist. At the start of a DST transition period, the wallclock time jumps forward. The instants jumped over never occur. '''
Name
Size
Last Modified
Owner
Permissions
Actions
__pycache__
Dir
December 10 2023 3:46:21
root
0755
__init__.py
14.052
KB
October 15 2023 7:02:35
root
0644
exceptions.py
1.302
KB
March 30 2017 12:33:58
root
0644
lazy.py
5.14
KB
March 30 2017 12:33:58
root
0644
reference.py
3.563
KB
March 30 2017 12:33:58
root
0644
tzfile.py
4.777
KB
March 30 2017 12:33:58
root
0644
tzinfo.py
18.914
KB
March 30 2017 12:33:58
root
0644
2017 © D7net | D704T team