Merge "Revert "Big Switch: Check source_address attribute exists""

This commit is contained in:
Jenkins 2014-05-09 02:22:49 +00:00 committed by Gerrit Code Review
commit ba4571369e

View File

@ -566,8 +566,8 @@ class HTTPSConnectionWithValidation(httplib.HTTPSConnection):
combined_cert = None
def connect(self):
sock = socket.create_connection((self.host, self.port), self.timeout,
getattr(self, 'source_address', None))
sock = socket.create_connection((self.host, self.port),
self.timeout, self.source_address)
if self._tunnel_host:
self.sock = sock
self._tunnel()