Improve the error message to specifically refer to byte string for the benefit of python 3
This commit is contained in:
parent
74d509e617
commit
df5daf0f9f
|
@ -169,7 +169,7 @@ Tuple_to_LDAPMod( PyObject* tup, int no_op )
|
|||
goto error;
|
||||
if (!PyBytes_Check(item)) {
|
||||
PyErr_SetObject( PyExc_TypeError, Py_BuildValue( "sO",
|
||||
"expected a string in the list", item));
|
||||
"expected a byte string in the list", item));
|
||||
Py_DECREF(item);
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue