Author: thomas.heller Date: Thu Jul 12 21:56:28 2007 New Revision: 56335 Modified: python/branches/py3k-struni/Lib/ctypes/test/test_array_in_pointer.py Log: binascii.hexlify returns a bytes object; we must convert it to str before we can pass it to re.sub.
Modified: python/branches/py3k-struni/Lib/ctypes/test/test_array_in_pointer.py ============================================================================== --- python/branches/py3k-struni/Lib/ctypes/test/test_array_in_pointer.py (original) +++ python/branches/py3k-struni/Lib/ctypes/test/test_array_in_pointer.py Thu Jul 12 21:56:28 2007 @@ -6,7 +6,7 @@ def dump(obj): # helper function to dump memory contents in hex, with a hyphen # between the bytes. - h = hexlify(buffer(obj)) + h = str(hexlify(buffer(obj))) return re.sub(r"(..)", r"\1-", h)[:-1] _______________________________________________ Python-3000-checkins mailing list Python-3000-checkins@python.org http://mail.python.org/mailman/listinfo/python-3000-checkins