1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 20:44:18 +00:00

fixed stupid bug in scheduler introduced in previous change

This commit is contained in:
Pablo Hoffman 2011-05-20 03:52:41 -03:00
parent 70b0e42ca6
commit 3897e33612

View File

@ -58,9 +58,7 @@ class Scheduler(object):
return dfd
def clear_pending_requests(self, spider):
"""Remove all pending requests for the given spider"""
q = self.pending_requests[spider]
q.clear()
pass
def next_request(self, spider):
"""Return the next available request to be downloaded for a spider.