mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
- Issue #13840: Fix ctypes.create_string_buffer exception message and docs.
This commit is contained in:
parent
eaac4f0d30
commit
65992c1c01
3 changed files with 4 additions and 5 deletions
|
@ -1096,7 +1096,7 @@ CharArray_set_value(CDataObject *self, PyObject *value)
|
|||
|
||||
if (!PyBytes_Check(value)) {
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"str/bytes expected instead of %s instance",
|
||||
"bytes expected instead of %s instance",
|
||||
Py_TYPE(value)->tp_name);
|
||||
return -1;
|
||||
} else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue