bazarr/libs/pytz_deprecation_shim/__init__.py

35 lines
616 B
Python

__all__ = [
"AmbiguousTimeError",
"NonExistentTimeError",
"InvalidTimeError",
"UnknownTimeZoneError",
"PytzUsageWarning",
"FixedOffset",
"UTC",
"utc",
"build_tzinfo",
"timezone",
"fixed_offset_timezone",
"wrap_zone",
]
from . import helpers
from ._exceptions import (
AmbiguousTimeError,
InvalidTimeError,
NonExistentTimeError,
PytzUsageWarning,
UnknownTimeZoneError,
)
from ._impl import (
UTC,
build_tzinfo,
fixed_offset_timezone,
timezone,
wrap_zone,
)
# Compatibility aliases
utc = UTC
FixedOffset = fixed_offset_timezone