Revert "Big Switch: Check source_address attribute exists"
This reverts commit 0dde14c0cd
.
This fix only addressed part of the problem. The socket call
in python 2.6 does not accept an extra source address arg
either.
Change-Id: I4df4f66e9db0da1a8923ee37e918718f3bcf26ee
Partial-Bug: #1316382
This commit is contained in:
parent
d61006dd20
commit
c33013c46a
@ -566,8 +566,8 @@ class HTTPSConnectionWithValidation(httplib.HTTPSConnection):
|
|||||||
combined_cert = None
|
combined_cert = None
|
||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
sock = socket.create_connection((self.host, self.port), self.timeout,
|
sock = socket.create_connection((self.host, self.port),
|
||||||
getattr(self, 'source_address', None))
|
self.timeout, self.source_address)
|
||||||
if self._tunnel_host:
|
if self._tunnel_host:
|
||||||
self.sock = sock
|
self.sock = sock
|
||||||
self._tunnel()
|
self._tunnel()
|
||||||
|
Loading…
Reference in New Issue
Block a user