commit | 41f58a70ac168c3f468d2dacb945dd88f1c89350 | [log] [tgz] |
---|---|---|
author | Alexandre Vassalotti <alexandre@peadrop.com> | Tue Jan 12 01:23:09 2010 +0000 |
committer | Alexandre Vassalotti <alexandre@peadrop.com> | Tue Jan 12 01:23:09 2010 +0000 |
tree | 19488ee2e0d7fcf442c05f0de4af57967988ebeb | |
parent | a278be3c8134d0ee39cf78147cfd4d0635c818d3 [diff] [blame] |
Issue #7382: Fix bytes.__getnewargs__.
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 @@ 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)); }