Skip to content
Snippets Groups Projects
Commit 54b06bec authored by Denis Laxalde's avatar Denis Laxalde
Browse files

py3: use socket.makefile() instead of dropped smtplib.SSLFakeFile

The latter (undocumented internal) class got removed in Python 3.3. Use
socket.makefile() as suggested:

  https://docs.python.org/3/whatsnew/3.3.html#porting-python-code
parent a1801ee9
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@
ui=self._ui,
serverhostname=self._host,
)
self.file = smtplib.SSLFakeFile(self.sock)
self.file = self.sock.makefile("rb")
self.helo_resp = None
self.ehlo_resp = None
self.esmtp_features = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment