summaryrefslogtreecommitdiff
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-04-03 22:18:11 +0000
committerBenjamin Peterson <benjamin@python.org>2009-04-03 22:18:11 +0000
commit1b54877fe3f0742c4b38460f7a61c43f4ef8f750 (patch)
tree5744debf693283699b92e2c9cc8691942430824c /Python/modsupport.c
parentae85d0906f6a5654d1977ac6dee9082440e7cb3d (diff)
downloadcpython-1b54877fe3f0742c4b38460f7a61c43f4ef8f750.tar.gz
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 2531d0d1ca..0cbc6f7cfb 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':
{