MCPcopy Create free account
hub / github.com/dateutil/dateutil / pop_tzdata_modules

Function pop_tzdata_modules

tests/_common.py:27–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def pop_tzdata_modules():
28 tzdata_modules = {}
29 for modname in list(sys.modules):
30 if modname.split(".", 1)[0] != "tzdata": # pragma: nocover
31 continue
32
33 tzdata_modules[modname] = sys.modules.pop(modname)
34
35 return tzdata_modules
36
37
38@contextdecorator

Callers 1

set_tzpathFunction · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected