]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Oops, revert unwanted change used to create an example
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 15 Mar 2016 21:49:40 +0000 (22:49 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 15 Mar 2016 21:49:40 +0000 (22:49 +0100)
Issue #26564.

Objects/bytearrayobject.c

index 67ae7d9da853bef9f01d50f1486909764f7e99e8..9e8ba3999298d5b1a19bbfbb4f7a7eace2a5c2ce 100644 (file)
@@ -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);
 }