From: Bill Janssen Date: Fri, 31 Aug 2007 19:02:46 +0000 (+0000) Subject: remove mentions of socket.ssl in comments X-Git-Tag: v2.6a1~1367 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=910fa59595196a247c3fac792b78c48d9a73abe3;p=python remove mentions of socket.ssl in comments --- diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 8ca9358afb..5a7adf4c80 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -1165,7 +1165,6 @@ else: def readline(self): """Read line from remote.""" - # NB: socket.ssl needs a "readline" method, or perhaps a "makefile" method. line = [] while 1: char = self.sslobj.read(1) @@ -1175,7 +1174,6 @@ else: def send(self, data): """Send data to remote.""" - # NB: socket.ssl needs a "sendall" method to match socket objects. bytes = len(data) while bytes > 0: sent = self.sslobj.write(data) @@ -1201,7 +1199,7 @@ else: def ssl(self): """Return SSLObject instance used to communicate with the IMAP4 server. - ssl = .socket.ssl() + ssl = ssl.sslsocket(.socket) """ return self.sslobj