python (3.11.7)

(root)/
lib/
python3.11/
zoneinfo/
__init__.py
       1  __all__ = [
       2      "ZoneInfo",
       3      "reset_tzpath",
       4      "available_timezones",
       5      "TZPATH",
       6      "ZoneInfoNotFoundError",
       7      "InvalidTZPathWarning",
       8  ]
       9  
      10  from . import _tzpath
      11  from ._common import ZoneInfoNotFoundError
      12  
      13  try:
      14      from _zoneinfo import ZoneInfo
      15  except ImportError:  # pragma: nocover
      16      from ._zoneinfo import ZoneInfo
      17  
      18  reset_tzpath = _tzpath.reset_tzpath
      19  available_timezones = _tzpath.available_timezones
      20  InvalidTZPathWarning = _tzpath.InvalidTZPathWarning
      21  
      22  
      23  def __getattr__(name):
      24      if name == "TZPATH":
      25          return _tzpath.TZPATH
      26      else:
      27          raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
      28  
      29  
      30  def __dir__():
      31      return sorted(list(globals()) + ["TZPATH"])