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

Log:    same fix for bytes objects

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

Reply via email to