From: Victor Stinner Date: Tue, 15 Mar 2016 21:49:40 +0000 (+0100) Subject: Oops, revert unwanted change used to create an example X-Git-Tag: v3.6.0a1~465 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ffcf1a54d39fcb2b9f9830b64708c423c2c4a18d;p=thirdparty%2FPython%2Fcpython.git Oops, revert unwanted change used to create an example Issue #26564. --- diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 67ae7d9da853..9e8ba3999298 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -2820,7 +2820,6 @@ bytearray_hex(PyBytesObject *self) { char* argbuf = PyByteArray_AS_STRING(self); Py_ssize_t arglen = PyByteArray_GET_SIZE(self); - PyByteArray_AS_STRING(self)[arglen+1] = 2; return _Py_strhex(argbuf, arglen); }