Author: Richard Plangger <planri...@gmail.com>
Branch: py3.5
Changeset: r89541:6b60487f8de0
Date: 2017-01-13 13:13 +0100
http://bitbucket.org/pypy/pypy/changeset/6b60487f8de0/

Log:    change parameters of _array_to_hexstring for bytearray(...).hex()

diff --git a/pypy/objspace/std/bytearrayobject.py 
b/pypy/objspace/std/bytearrayobject.py
--- a/pypy/objspace/std/bytearrayobject.py
+++ b/pypy/objspace/std/bytearrayobject.py
@@ -483,7 +483,7 @@
 
     def descr_hex(self, space):
         data = self.getdata()
-        return _array_to_hexstring(space, data, len(data), True)
+        return _array_to_hexstring(space, data, 0, 1, len(data), True)
 
     def descr_mod(self, space, w_values):
         return mod_format(space, self, w_values, fmt_type=FORMAT_BYTEARRAY)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to