Comment 1 for bug 293054

Revision history for this message
John A Meinel (jameinel) wrote :

So it seems we have a compatibility issue with python2.6.

I don't see a function called "ssl.wrap_socket()" it python2.5 and early. There is socket.ssl(sock)

so perhaps they mean that instead of using:
ssl = socket.ssl(self.sock, self.key_file, self.cert_file)
self.sock = httplib.FakeSocket(self.sock, ssl)

we should be doing
self.sock = socket.ssl(self.sock, self.key_file, self.cert_file)

Anyway, it seems that not only did they deprecate FakeSocket, they also broke it by removing the 'sendall()' function.