Peter Donis added the comment: Investigating further, the problem appears to be with the SSLFakeFile object used for SSL/TLS connections. Here is a console session showing the issue (I have redacted the host name and port number used for privacy reasons):
>>> import smtplib >>> smtp = smtplib.SMTP(hostname, portnum) >>> smtp.file <_io.BufferedReader name=3> >>> smtp.starttls() (220, b'2.0.0 Ready to start TLS') >>> smtp.file <smtplib.SSLFakeFile object at 0x1cdb3d0> >>> smtp.file.readline(1) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: readline() takes exactly 1 positional argument (2 given) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25045> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com