summaryrefslogtreecommitdiff
path: root/Objects/bytearrayobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-15 22:49:40 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-15 22:49:40 +0100
commit161b6f5b9c20c222759a1457e0c58d1573db1c70 (patch)
tree1da88c66ba0e86837b7f7b7c13632aaf9e281850 /Objects/bytearrayobject.c
parent2da2956057a94cdaa924b7326ab286a5148eeb28 (diff)
downloadcpython-161b6f5b9c20c222759a1457e0c58d1573db1c70.tar.gz
Oops, revert unwanted change used to create an example
Issue #26564.
Diffstat (limited to 'Objects/bytearrayobject.c')
-rw-r--r--Objects/bytearrayobject.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
index 67ae7d9da8..9e8ba39992 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);
}