summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes/_ctypes.c
diff options
context:
space:
mode:
authorMeador Inge <meadori@gmail.com>2012-01-26 14:47:27 (GMT)
committerMeador Inge <meadori@gmail.com>2012-01-26 14:47:27 (GMT)
commitc9e7ef7d70f531864ffef222ff72ccf75a9425c5 (patch)
tree4075b06a1e59901898f51ef847d7942c9205c428 /Modules/_ctypes/_ctypes.c
parent7f2b576875ce7cab03cdbea3984edbd801045a24 (diff)
parent65992c1c01115166375e1c6d8484f053919e30da (diff)
downloadcpython-c9e7ef7d70f531864ffef222ff72ccf75a9425c5.zip
cpython-c9e7ef7d70f531864ffef222ff72ccf75a9425c5.tar.gz
cpython-c9e7ef7d70f531864ffef222ff72ccf75a9425c5.tar.bz2
- Issue #13840: Fix ctypes.create_string_buffer exception message and docs.
Diffstat (limited to 'Modules/_ctypes/_ctypes.c')
-rw-r--r--Modules/_ctypes/_ctypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 31906bf..7516306 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -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