Mercurial > hg
diff tests/dummysmtpd.py @ 51700:7f0cb9ee0534
Backout accidental publication of a large range of revisions
I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 23 Jul 2024 10:02:46 +0200 |
parents | 8f0b0df79039 |
children | 8fe7c0e1df1e |
line wrap: on
line diff
--- a/tests/dummysmtpd.py Mon Jul 22 16:49:38 2024 +0200 +++ b/tests/dummysmtpd.py Tue Jul 23 10:02:46 2024 +0200 @@ -31,15 +31,8 @@ def mocksmtpserversession(conn, addr): conn.send(b'220 smtp.example.com ESMTP\r\n') - try: - # Newer versions of OpenSSL raise on EOF - line = conn.recv(1024) - except ssl.SSLError: - log('no hello: EOF\n') - return - + line = conn.recv(1024) if not line.lower().startswith(b'ehlo '): - # Older versions of OpenSSl don't raise log('no hello: %s\n' % line) return