MCPcopy
hub / github.com/benoitc/gunicorn / __getitem__

Method __getitem__

gunicorn/dirty/stash.py:359–365  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

357 return self._name
358
359 def __getitem__(self, key):
360 result = self._client.get(self._name, key)
361 if result is None:
362 # Check if key actually exists with None value
363 if not self._client.exists(self._name, key):
364 raise KeyError(key)
365 return result
366
367 def __setitem__(self, key, value):
368 self._client.put(self._name, key, value)

Callers

nothing calls this directly

Calls 2

existsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected