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 kmcguire
Recipients kmcguire
Date 2009-07-20.06:12:16
SpamBayes Score 1.1129448e-05
Marked as misclassified No
Message-id <1248070339.45.0.0640518982252.issue6523@psf.upfronthosting.co.za>
In-reply-to
Content
------ SYSTEM INFORMATION -----
module:     smtplib
system:     linux

python3.0 -V 
  Python 3.0.1+

----- TEST CASE PYTHON SOURCE -----
import smtplib
smtp = smtplib.SMTP()
smtp.connect('mail.myserver.org')
smtp.login('myusername', 'mypassword')

----- TEST CASE EXECUTION RESULTS -----
python3.0 testcase.py 
Traceback (most recent call last):
  File "testcase.py", line 4, in <module>
    smtp.login('myusername', 'mypassword')
  File "/home/kevin/Projects/ftpwatch/smtplib.py", line 580, in login
    AUTH_PLAIN + " " + encode_plain(user, password))
  File "/home/kevin/Projects/ftpwatch/smtplib.py", line 545, in encode_plain
    return encode_base64("\0%s\0%s" % (user, password))
  File "/usr/lib/python3.0/email/base64mime.py", line 96, in body_encode
    enc = b2a_base64(s[i:i + max_unencoded]).decode("ascii")
TypeError: b2a_base64() argument 1 must be bytes or buffer, not str
History
Date User Action Args
2009-07-20 06:12:19kmcguiresetrecipients: + kmcguire
2009-07-20 06:12:19kmcguiresetmessageid: <1248070339.45.0.0640518982252.issue6523@psf.upfronthosting.co.za>
2009-07-20 06:12:17kmcguirelinkissue6523 messages
2009-07-20 06:12:16kmcguirecreate