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 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()