Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/dateutil/__init__.py: 77%
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',
10 'utils', 'zoneinfo']
12def __getattr__(name):
13 import importlib
15 if name in __all__:
16 return importlib.import_module("." + name, __name__)
17 raise AttributeError(
18 "module {!r} has not attribute {!r}".format(__name__, name)
19 )
22def __dir__():
23 # __dir__ should include all the lazy-importable modules as well.
24 return [x for x in globals() if x not in sys.modules] + __all__