#NEWLINE# def __init__( self , crawler ) : #NEWLINE# #INDENT# self . _crawler = crawler #NEWLINE# self . _schemes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _handlers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _notconfigured = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# handlers = without_none_values ( crawler . settings . getwithbase ( 'DOWNLOAD_HANDLERS' ) ) #NEWLINE# for ( scheme , clspath ) in six . iteritems ( handlers ) : #NEWLINE# #INDENT# self . _schemes [ scheme ] = clspath #NEWLINE# #UNINDENT# crawler . signals . connect ( self . _close , signals . engine_stopped )