def __init__(self, crawler):
    self._crawler = crawler
    self._schemes = {}
    self._handlers = {}
    self._notconfigured = {}
    handlers = without_none_values(crawler.settings.getwithbase('DOWNLOAD_HANDLERS'))
    for (scheme, clspath) in handlers.items():
        self._schemes[scheme] = clspath
        self._load_handler(scheme, skip_lazy=True)
    crawler.signals.connect(self._close, signals.engine_stopped)
def __init__(self, crawler):
    self._crawler = crawler
    self._schemes = {}
    self._handlers = {}
    self._notconfigured = {}
    handlers = without_none_values(crawler.settings.getwithbase('DOWNLOAD_HANDLERS'))
    for (scheme, clspath) in handlers.items():
        self._schemes[scheme] = clspath
        self._load_handler(scheme, skip_lazy=True)
    crawler.signals.connect(self._close, signals.engine_stopped)