MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / __getitem__

Method __getitem__

tests/test_code/py/pytz/lazy.py:20–28  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

18 data = None
19
20 def __getitem__(self, key):
21 if self.data is None:
22 _fill_lock.acquire()
23 try:
24 if self.data is None:
25 self._fill()
26 finally:
27 _fill_lock.release()
28 return self.data[key.upper()]
29
30 def __contains__(self, key):
31 if self.data is None:

Callers

nothing calls this directly

Calls 1

_fillMethod · 0.45

Tested by

no test coverage detected