Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffcf1a5

Browse files
committed
Oops, revert unwanted change used to create an example
Issue #26564.
1 parent 0611c26 commit ffcf1a5

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Objects/bytearrayobject.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2820,7 +2820,6 @@ bytearray_hex(PyBytesObject *self)
28202820
{
28212821
char* argbuf = PyByteArray_AS_STRING(self);
28222822
Py_ssize_t arglen = PyByteArray_GET_SIZE(self);
2823-
PyByteArray_AS_STRING(self)[arglen+1] = 2;
28242823
return _Py_strhex(argbuf, arglen);
28252824
}
28262825

0 commit comments

Comments
 (0)