From b34606030dff9c83bbd95532e7fc0b9f1604b9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gra=C3=B1a?= Date: Tue, 15 May 2012 11:32:52 -0300 Subject: [PATCH] remove duplicate context factory handling for non-ssl support in http1.0 --- scrapy/core/downloader/handlers/http.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scrapy/core/downloader/handlers/http.py b/scrapy/core/downloader/handlers/http.py index 7d91f1fb7..9f3799c59 100644 --- a/scrapy/core/downloader/handlers/http.py +++ b/scrapy/core/downloader/handlers/http.py @@ -1,9 +1,9 @@ -"""Download handlers for http and https schemes""" - +"""Download handlers for http and https schemes +""" from twisted.internet import reactor - from scrapy.utils.misc import load_object + class HttpDownloadHandler(object): def __init__(self, settings): @@ -19,7 +19,7 @@ class HttpDownloadHandler(object): def _connect(self, factory): host, port = factory.host, factory.port if factory.scheme == 'https': - return reactor.connectSSL(host, port, factory, \ - self.ClientContextFactory()) + return reactor.connectSSL(host, port, factory, + self.ClientContextFactory()) else: return reactor.connectTCP(host, port, factory)