MCPcopy
hub / github.com/urllib3/urllib3 / stash

Method stash

test/__init__.py:316–322  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

314 self._data: dict[str, ModuleType] = {}
315
316 def stash(self) -> None:
317 if self.namespace in self.modules:
318 self._data[self.namespace] = self.modules.pop(self.namespace)
319
320 for module in list(self.modules.keys()):
321 if module.startswith(self.namespace + "."):
322 self._data[module] = self.modules.pop(module)
323
324 def pop(self) -> None:
325 self.modules.pop(self.namespace, None)

Callers 2

setup_classMethod · 0.80
setup_classMethod · 0.80

Calls 2

popMethod · 0.80
keysMethod · 0.45

Tested by 2

setup_classMethod · 0.64
setup_classMethod · 0.64