Skip to content
Permalink
Browse files

t.i.b.ThreadedResolver is now a new-style class

since 2009 / twisted-9.0.0
twisted/twisted@663d669
  • Loading branch information
nyov authored and dangra committed Feb 25, 2015
1 parent cdb9a0b commit 9e13f42ecf420d94f47331db49b65a2d6690c29e
Showing with 1 addition and 1 deletion.
  1. +1 −1 scrapy/resolver.py
@@ -13,7 +13,7 @@ class CachingThreadedResolver(ThreadedResolver):
def getHostByName(self, name, timeout = (1, 3, 11, 45)):
if name in dnscache:
return defer.succeed(dnscache[name])
d = ThreadedResolver.getHostByName(self, name, timeout)
d = super(CachingThreadedResolver, self).getHostByName(name, timeout)
d.addCallback(self._cache_result, name)
return d

0 comments on commit 9e13f42

Please sign in to comment.