Message247097
5513 idna = _PyObject_CallMethodId(hobj, &PyId_encode, "s", "idna");
5514 if (!idna)
5515 return NULL;
5516 assert(PyBytes_Check(idna));
The assertion fails because the custom string type in poc_getaddr.py returns an integer, not a byte string.
IMHO we should call PyUnicode_AsEncodedObject() instead of calling the encode() method. |
|
Date |
User |
Action |
Args |
2015-07-22 07:28:05 | vstinner | set | recipients:
+ vstinner, pkt |
2015-07-22 07:28:05 | vstinner | set | messageid: <1437550085.95.0.637896375978.issue24684@psf.upfronthosting.co.za> |
2015-07-22 07:28:05 | vstinner | link | issue24684 messages |
2015-07-22 07:28:05 | vstinner | create | |
|