1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-03-14 07:28:17 +00:00

Remove a 'twisted.test.proto_helpers' deprecation warning

This commit is contained in:
nyov 2020-03-07 18:03:25 +00:00
parent c57512fa66
commit 915e363db5

View File

@ -9,6 +9,11 @@ import OpenSSL.SSL
from twisted.trial import unittest
from twisted.web import server, static, util, resource
from twisted.internet import reactor, defer
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