mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
c_char_p.from_param accepts bytes. Fix test_parameters.
This commit is contained in:
parent
7a76e8f67c
commit
3d79dd9edf
2 changed files with 4 additions and 4 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue