Download data/miniconda3/lib/python3.13/zoneinfo/__init__.py from assassinlike/everything132: direct link, hf CLI and curl.
- Browser
- Download file 917 Bytes
-
https://huggingface.co/datasets/assassinlike/everything132/resolve/main/data/miniconda3/lib/python3.13/zoneinfo/__init__.py
- Command line
-
hf download hf://datasets/assassinlike/everything132/data/miniconda3/lib/python3.13/zoneinfo/__init__.py
-
curl -L -o __init__.py https://huggingface.co/datasets/assassinlike/everything132/resolve/main/data/miniconda3/lib/python3.13/zoneinfo/__init__.py
917 Bytes
| __all__ = [ | |
| "ZoneInfo", | |
| "reset_tzpath", | |
| "available_timezones", | |
| "TZPATH", | |
| "ZoneInfoNotFoundError", | |
| "InvalidTZPathWarning", | |
| ] | |
| from . import _tzpath | |
| from ._common import ZoneInfoNotFoundError | |
| try: | |
| from _zoneinfo import ZoneInfo | |
| except (ImportError, AttributeError): # pragma: nocover | |
| # AttributeError: module 'datetime' has no attribute 'datetime_CAPI'. | |
| # This happens when the '_datetime' module is not available and the | |
| # pure Python implementation is used instead. | |
| from ._zoneinfo import ZoneInfo | |
| reset_tzpath = _tzpath.reset_tzpath | |
| available_timezones = _tzpath.available_timezones | |
| InvalidTZPathWarning = _tzpath.InvalidTZPathWarning | |
| def __getattr__(name): | |
| if name == "TZPATH": | |
| return _tzpath.TZPATH | |
| else: | |
| raise AttributeError(f"module {__name__!r} has no attribute {name!r}") | |
| def __dir__(): | |
| return sorted(list(globals()) + ["TZPATH"]) | |