Mention that ScrapyHTTPClientFactory has Twisted code

This commit is contained in:
Adrián Chaves 2019-11-20 08:16:33 +01:00
parent 0946eb335a
commit 42954d0df9
1 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,10 @@ class ScrapyHTTPPageGetter(HTTPClient):
(self.factory.url, self.factory.timeout)))
# This class used to inherit from Twisteds
# twisted.web.client.HTTPClientFactory. When that class was deprecated in
# Twisted (https://github.com/twisted/twisted/pull/643), we merged its
# non-overriden code into this class.
class ScrapyHTTPClientFactory(ClientFactory):
protocol = ScrapyHTTPPageGetter