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:
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…
x
Reference in New Issue
Block a user