mirror of https://github.com/scrapy/scrapy.git
py3: port dictionary itervalues call
This commit is contained in:
parent
bdcc78b4dd
commit
666ebfa1d9
|
|
@ -5,6 +5,7 @@ from time import time
|
|||
from datetime import datetime
|
||||
from collections import deque
|
||||
|
||||
import six
|
||||
from twisted.internet import reactor, defer, task
|
||||
|
||||
from scrapy.utils.defer import mustbe_deferred
|
||||
|
|
@ -188,7 +189,7 @@ class Downloader(object):
|
|||
|
||||
def close(self):
|
||||
self._slot_gc_loop.stop()
|
||||
for slot in self.slots.itervalues():
|
||||
for slot in six.itervalues(self.slots):
|
||||
slot.close()
|
||||
|
||||
def _slot_gc(self, age=60):
|
||||
|
|
|
|||
Loading…
Reference in New Issue