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.
Created on 2009年02月18日 01:36 by l5g, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (2) | |||
|---|---|---|---|
| msg82400 - (view) | Author: l5g (l5g) | Date: 2009年02月18日 01:36 | |
When using smtplib to send mail, I meet this bug. Maybe the line
""" enc = b2a_base64(s[i:i +
max_unencoded]).decode("ascii")"""
should be changed to
""" enc = b2a_base64((s[i:i +
max_unencoded]).encode()).decode("ascii")
File "/usr/local/lib/python3.0/smtplib.py", line 580, in login
AUTH_PLAIN + " " + encode_plain(user, password))
File "/usr/local/lib/python3.0/smtplib.py", line 545, in encode_plain
return encode_base64("0円%s0円%s" % (user, password))
File "/usr/local/lib/python3.0/email/base64mime.py", line 97, 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
|
|||
| msg86564 - (view) | Author: Daniel Diniz (ajaksu2) * (Python triager) | Date: 2009年04月25日 22:53 | |
This is a duplicate of issue 5259. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:45 | admin | set | github: 49554 |
| 2010年12月27日 17:04:58 | r.david.murray | unlink | issue1685453 dependencies |
| 2009年04月25日 22:53:46 | ajaksu2 | set | status: open -> closed superseder: smtplib is broken in Python3 nosy: + ajaksu2 messages: + msg86564 resolution: duplicate stage: test needed -> resolved |
| 2009年04月22日 14:40:20 | ajaksu2 | set | priority: high keywords: + easy type: compile error -> behavior stage: test needed |
| 2009年04月22日 14:40:11 | ajaksu2 | link | issue5259 dependencies |
| 2009年03月31日 06:05:27 | ocean-city | link | issue1685453 dependencies |
| 2009年02月18日 01:36:05 | l5g | create | |