[Python-checkins] cpython: Oops, revert unwanted change used to create an example

victor.stinner python-checkins at python.org
Tue Mar 15 17:50:05 EDT 2016


https://hg.python.org/cpython/rev/8215dae7ec3c
changeset:   100552:8215dae7ec3c
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Mar 15 22:49:40 2016 +0100
summary:
  Oops, revert unwanted change used to create an example

Issue #26564.

files:
  Objects/bytearrayobject.c |  1 -
  1 files changed, 0 insertions(+), 1 deletions(-)


diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c
--- a/Objects/bytearrayobject.c
+++ b/Objects/bytearrayobject.c
@@ -2820,7 +2820,6 @@
 {
     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);
 }
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list