c_char_p.from_param accepts bytes. Fix test_parameters.

This commit is contained in:
Thomas Heller 2007-07-12 19:33:24 +00:00
parent 7a76e8f67c
commit 3d79dd9edf
2 changed files with 4 additions and 4 deletions

View file

@ -1183,7 +1183,7 @@ c_char_p_from_param(PyObject *type, PyObject *value)
Py_INCREF(Py_None);
return Py_None;
}
if (PyString_Check(value) || PyUnicode_Check(value)) {
if (PyBytes_Check(value) || PyUnicode_Check(value)) {
PyCArgObject *parg;
struct fielddesc *fd = getentry("z");