MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / __getitem__

Method __getitem__

service/settings.py:108–113  ·  view source on GitHub ↗
(self, k)

Source from the content-addressed store, hash-verified

106 pickle.dump(self.info, f, pickle.HIGHEST_PROTOCOL)
107
108 def __getitem__(self, k):
109 try:
110 return self.info[k]
111 except KeyError as e:
112 pyfalog.warning("Failed to get setting for '{0}'. Exception: {1}", k, e)
113 return None
114
115 def __setitem__(self, k, v):
116 self.info[k] = v

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected