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

Method _commit_removals

Lib/importlib/_bootstrap.py:101–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99 self.data = {}
100
101 def _commit_removals(self):
102 pop = self._pending_removals.pop
103 d = self.data
104 while True:
105 try:
106 key = pop()
107 except IndexError:
108 return
109 _weakref._remove_dead_weakref(d, key)
110
111 def get(self, key, default=None):
112 if self._pending_removals:

Callers 2

getMethod · 0.95
setdefaultMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected