#NEWLINE# def url_is_from_spider( url , spider ) : #NEWLINE# #INDENT# 'Return True if the url belongs to the given spider' #NEWLINE# return url_is_from_any_domain ( spider , ( [ spider . name ] + list ( getattr ( spider , 'allowed_domains' , [ ] ) ) ) )