summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2010-01-12 01:23:09 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2010-01-12 01:23:09 (GMT)
commit41f58a70ac168c3f468d2dacb945dd88f1c89350 (patch)
tree19488ee2e0d7fcf442c05f0de4af57967988ebeb /Objects/bytesobject.c
parenta278be3c8134d0ee39cf78147cfd4d0635c818d3 (diff)
downloadcpython-41f58a70ac168c3f468d2dacb945dd88f1c89350.zip
cpython-41f58a70ac168c3f468d2dacb945dd88f1c89350.tar.gz
cpython-41f58a70ac168c3f468d2dacb945dd88f1c89350.tar.bz2
Issue #7382: Fix bytes.__getnewargs__.
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index eb11940..680a769 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -2807,7 +2807,7 @@ bytes_sizeof(PyBytesObject *v)
static PyObject *
bytes_getnewargs(PyBytesObject *v)
{
- return Py_BuildValue("(s#)", v->ob_sval, Py_SIZE(v));
+ return Py_BuildValue("(y#)", v->ob_sval, Py_SIZE(v));
}