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

Function clearer

tests/test_tzfile.py:2808–2813  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2806 errors.append(e)
2807
2808 def clearer():
2809 try:
2810 for i in range(n_iterations // 4):
2811 tz.gettz.cache_clear()
2812 except Exception as e: # pragma: nocover
2813 errors.append(e)
2814
2815 threads = [threading.Thread(target=worker, args=(key,)) for key in keys * 2]
2816 threads.append(threading.Thread(target=clearer))

Callers

nothing calls this directly

Calls 2

cache_clearMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected