Message339818
| Author | trey |
|---|---|
| Recipients | trey |
| Date | 2019-04-09.23:38:53 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1554853133.32.0.976890929788.issue36582@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
It looks like the encode method for UserString incorrectly wraps its return value in a str call.
```
>>> from collections import UserString
>>> UserString("hello").encode('utf-8') == b'hello'
False
>>> UserString("hello").encode('utf-8')
"b'hello'"
>>> type(UserString("hello").encode('utf-8'))
<class 'collections.UserString'>
``` |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-04-09 23:38:53 | trey | set | recipients: + trey |
| 2019-04-09 23:38:53 | trey | set | messageid: <1554853133.32.0.976890929788.issue36582@roundup.psfhosted.org> |
| 2019-04-09 23:38:53 | trey | link | issue36582 messages |
| 2019-04-09 23:38:53 | trey | create | |