Submitter | timeless@mozdev.org |
---|---|
Date | Oct. 20, 2015, 12:34 a.m. |
Message ID | <17ed74e8d8ef62ee19bb.1445301295@waste.org> |
Download | mbox | patch |
Permalink | /patch/11204/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/mail.py b/mercurial/mail.py --- a/mercurial/mail.py +++ b/mercurial/mail.py @@ -60,9 +60,6 @@ if resp == 220: self.sock = sslutil.wrapsocket(self.sock, keyfile, certfile, **self._sslkwargs) - if not util.safehasattr(self.sock, "read"): - # using httplib.FakeSocket with Python 2.5.x or earlier - self.sock.read = self.sock.recv self.file = smtplib.SSLFakeFile(self.sock) self.helo_resp = None self.ehlo_resp = None