[pypy-commit] pypy py3.5: change parameters of _array_to_hexstring for bytearray(...).hex()

plan_rich pypy.commits at gmail.com
Fri Jan 13 07:16:20 EST 2017


Author: Richard Plangger <planrichi at 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)


More information about the pypy-commit mailing list