MCPcopy
hub / github.com/scrapy/scrapy / _load_components

Method _load_components

scrapy/extensions/feedexport.py:647–655  ·  view source on GitHub ↗
(self, setting_prefix: str)

Source from the content-addressed store, hash-verified

645 self.slots = slots
646
647 def _load_components(self, setting_prefix: str) -> dict[str, Any]:
648 conf = without_none_values(
649 cast("dict[str, str]", self.settings.getwithbase(setting_prefix))
650 )
651 d = {}
652 for k, v in conf.items():
653 with contextlib.suppress(NotConfigured):
654 d[k] = load_object(v)
655 return d
656
657 def _exporter_supported(self, format_: str) -> bool:
658 if format_ in self.exporters:

Callers 1

__init__Method · 0.95

Calls 4

without_none_valuesFunction · 0.90
load_objectFunction · 0.90
getwithbaseMethod · 0.80
itemsMethod · 0.80

Tested by

no test coverage detected