You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 loginAUTH_PLAIN+""+ encode_plain(user, password))
File "/home/kevin/Projects/ftpwatch/smtplib.py", line 545, in encode_plainreturn 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
Activity
kmcguire commentedon Jul 20, 2009
------ SYSTEM INFORMATION -----
module: smtplib
system: linux
python3.0 -V
Python 3.0.1+
----- TEST CASE PYTHON SOURCE -----
----- TEST CASE EXECUTION RESULTS -----