summaryrefslogtreecommitdiffstats
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-04-03 22:18:11 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-04-03 22:18:11 (GMT)
commita921fb0f66e082a61277e97e1326a26fa59be3f0 (patch)
tree5f9897b1acee7cbf88c253003e62fc7f79824aae /Python/modsupport.c
parenta3b1ac8dca5afa01d9d542e125052014a9af56eb (diff)
downloadcpython-a921fb0f66e082a61277e97e1326a26fa59be3f0.zip
cpython-a921fb0f66e082a61277e97e1326a26fa59be3f0.tar.gz
cpython-a921fb0f66e082a61277e97e1326a26fa59be3f0.tar.bz2
Py_BuildValue's 'c' code should use byte strings #5666
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r--Python/modsupport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c
index 2531d0d..0cbc6f7 100644
--- a/Python/modsupport.c
+++ b/Python/modsupport.c
@@ -289,7 +289,7 @@ do_mkvalue(const char **p_format, va_list *p_va, int flags)
{
char p[1];
p[0] = (char)va_arg(*p_va, int);
- return PyUnicode_FromStringAndSize(p, 1);
+ return PyBytes_FromStringAndSize(p, 1);
}
case 'C':
{