MCPcopy Index your code
hub / github.com/python/cpython / clear_cache

Method clear_cache

Lib/urllib/request.py:1617–1621  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1615 self.soonest = min(list(self.timeout.values()))
1616
1617 def clear_cache(self):
1618 for conn in self.cache.values():
1619 conn.close()
1620 self.cache.clear()
1621 self.timeout.clear()
1622
1623class DataHandler(BaseHandler):
1624 def data_open(self, req):

Callers

nothing calls this directly

Calls 3

valuesMethod · 0.45
closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected