#NEWLINE# def _get_concurrency_delay( concurrency , spider , settings ) : #NEWLINE# #INDENT# delay = settings . getfloat ( 'DOWNLOAD_DELAY' ) #NEWLINE# if hasattr ( spider , 'DOWNLOAD_DELAY' ) : #NEWLINE# #INDENT# warnings . warn ( ( '%s.DOWNLOAD_DELAY attribute is deprecated, use %s.download_delay instead' % ( type ( spider ) . __name__ , type ( settings ) . __name__ ) ) ) #NEWLINE# delay = spider . DOWNLOAD_DELAY #NEWLINE# #UNINDENT# if hasattr ( spider , 'download_delay' ) : #NEWLINE# #INDENT# delay = spider . download_delay #NEWLINE# #UNINDENT# if hasattr ( spider , 'max_concurrent_requests' ) : #NEWLINE# #INDENT# concurrency = spider . max_concurrent_requests #NEWLINE# #UNINDENT# return ( concurrency , delay )