mirror of
https://github.com/scrapy/scrapy.git
synced 2025-03-13 08:13:55 +00:00
Remove a 'twisted.test.proto_helpers' deprecation warning
This commit is contained in:
parent
c57512fa66
commit
915e363db5
@ -9,7 +9,12 @@ import OpenSSL.SSL
|
||||
from twisted.trial import unittest
|
||||
from twisted.web import server, static, util, resource
|
||||
from twisted.internet import reactor, defer
|
||||
from twisted.test.proto_helpers import StringTransport
|
||||
try:
|
||||
from twisted.internet.testing import StringTransport
|
||||
except ImportError:
|
||||
# deprecated in Twisted 19.7.0
|
||||
# (remove once we bump our requirement past that version)
|
||||
from twisted.test.proto_helpers import StringTransport
|
||||
from twisted.python.filepath import FilePath
|
||||
from twisted.protocols.policies import WrappingFactory
|
||||
from twisted.internet.defer import inlineCallbacks
|
||||
|
Loading…
x
Reference in New Issue
Block a user