mirror of https://github.com/scrapy/scrapy.git
Improved Twisted version detection (wasn't working for Twisted 10.0.0)
This commit is contained in:
parent
e95f7f63f9
commit
747f090f94
|
|
@ -41,7 +41,8 @@ def add_missing_blockingCallFromThread():
|
|||
|
||||
try:
|
||||
import twisted
|
||||
if twisted.__version__ < '8.0.0':
|
||||
from twisted.python.versions import Version
|
||||
if twisted.version < Version("twisted", 8, 0, 0):
|
||||
add_missing_blockingCallFromThread()
|
||||
except ImportError:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Reference in New Issue