They're equivalent, and the latter is what Python 3.3 says to use in
the release notes. Turns out it works on Python 2 as well.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGa5e70c14214a: mail: stop using the smtplib.SSLFakeFile and use socket.socket.makefile
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
- self.file = smtplib.SSLFakeFile(new_socket)
+ self.file = new_socket.makefile()
I'm not pretty sure, but missing 'rb'?