This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pdonis
Recipients barry, pdonis, phlambotte, r.david.murray
Date 2015-10-08.01:50:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444269032.92.0.742645703477.issue25045@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2015-10-08 01:50:32pdonissetrecipients: + pdonis, barry, r.david.murray, phlambotte
2015-10-08 01:50:32pdonissetmessageid: <1444269032.92.0.742645703477.issue25045@psf.upfronthosting.co.za>
2015-10-08 01:50:32pdonislinkissue25045 messages
2015-10-08 01:50:32pdoniscreate