MCPcopy
hub / github.com/scrapy/scrapy / get

Method get

scrapy/utils/datatypes.py:82–83  ·  view source on GitHub ↗
(self, key: AnyStr, def_val: Any = None)

Source from the content-addressed store, hash-verified

80 return value
81
82 def get(self, key: AnyStr, def_val: Any = None) -> Any:
83 return dict.get(self, self.normkey(key), self.normvalue(def_val))
84
85 def setdefault(self, key: AnyStr, def_val: Any = None) -> Any:
86 return dict.setdefault(self, self.normkey(key), self.normvalue(def_val))

Callers 15

test_getdefaultMethod · 0.95
_get_handlerFunction · 0.45
logformatter_adapterFunction · 0.45
processMethod · 0.45
send_catch_logFunction · 0.45
_send_catch_log_deferredFunction · 0.45
_send_catch_log_asyncioFunction · 0.45
get_pythonpathFunction · 0.45
get_from_asyncio_queueFunction · 0.45
set_environFunction · 0.45
inside_projectFunction · 0.45
project_data_dirFunction · 0.45

Calls 2

normkeyMethod · 0.95
normvalueMethod · 0.95

Tested by 3

test_getdefaultMethod · 0.76
get_pythonpathFunction · 0.36
get_from_asyncio_queueFunction · 0.36