Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/dateutil/__init__.py: 71%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# -*- coding: utf-8 -*-
2import sys
4try:
5 from ._version import version as __version__
6except ImportError:
7 __version__ = 'unknown'
9__all__ = ["easter", "parser", "relativedelta", "rrule", "tz", "utils"]
12def __getattr__(name):
13 import importlib
15 if name in __all__ or name == "zoneinfo":
16 return importlib.import_module("." + name, __name__)
17 raise AttributeError(
18 "module {!r} has no attribute {!r}".format(__name__, name)
19 )
22def __dir__():
23 # __dir__ should include all the lazy-importable modules as well.
24 return (
25 [x for x in globals() if x not in sys.modules] + __all__ + ["zoneinfo"]
26 )