Mercurial > cpython-lru_cache-weakref
diff Objects/bytesobject.c @ 58264:efa5867d8a14
Issue #7382: Fix bytes.__getnewargs__.
| author | Alexandre Vassalotti <alexandre@peadrop.com> |
|---|---|
| date | Tue, 12 Jan 2010 01:23:09 +0000 |
| parents | 7e2af4e57039 |
| children | 5ca1948a8fd6 |
line wrap: on
line diff
--- a/Objects/bytesobject.c Mon Jan 11 23:47:51 2010 +0000 +++ b/Objects/bytesobject.c Tue Jan 12 01:23:09 2010 +0000 @@ -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)); }
