mirror of https://github.com/scrapy/scrapy.git
fixed stupid bug in scheduler introduced in previous change
This commit is contained in:
parent
70b0e42ca6
commit
3897e33612
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue