mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
parent
0611c26a58
commit
ffcf1a54d3
1 changed files with 0 additions and 1 deletions
|
@ -2820,7 +2820,6 @@ bytearray_hex(PyBytesObject *self)
|
||||||
{
|
{
|
||||||
char* argbuf = PyByteArray_AS_STRING(self);
|
char* argbuf = PyByteArray_AS_STRING(self);
|
||||||
Py_ssize_t arglen = PyByteArray_GET_SIZE(self);
|
Py_ssize_t arglen = PyByteArray_GET_SIZE(self);
|
||||||
PyByteArray_AS_STRING(self)[arglen+1] = 2;
|
|
||||||
return _Py_strhex(argbuf, arglen);
|
return _Py_strhex(argbuf, arglen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue