py3: port dictionary itervalues call

This commit is contained in:
Daniel Graña 2015-08-10 16:45:27 -03:00
parent bdcc78b4dd
commit 666ebfa1d9
1 changed files with 2 additions and 1 deletions

View File

@ -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):