MCPcopy
hub / github.com/scrapy/scrapy / restore_key

Method restore_key

scrapy/settings/__init__.py:382–383  ·  view source on GitHub ↗
(k: str)

Source from the content-addressed store, hash-verified

380 return key
381
382 def restore_key(k: str) -> Any:
383 return normalized_keys.get(k, k)
384
385 result = dict(self[name + "_BASE"] or {})
386 override = {normalize_key(k): v for k, v in (self[name] or {}).items()}

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected