From 39138171e3b4d010ba524c67cf3dc1a512a9a441 Mon Sep 17 00:00:00 2001
From: Yichao Yu <yyc1992@gmail.com>
Date: Sun, 20 Jul 2014 00:42:21 -0400
Subject: [PATCH] fix up

---
 pyopencl/cffi_cl.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py
index 222cbba5..2c6dd7f1 100644
--- a/pyopencl/cffi_cl.py
+++ b/pyopencl/cffi_cl.py
@@ -118,10 +118,7 @@ def _generic_info_to_python(info):
         if type_.startswith('char['):
             # This is usually a CL binary, which may contain NUL characters
             # that should be preserved.
-            if sys.version_info < (3,):
-                ret = ''.join(a[0] for a in value)
-            else:
-                ret = bytes(_ffi.buffer(value))
+            ret = _bytes(_ffi.buffer(value))
 
         elif type_.startswith('generic_info['):
             ret = list(map(_generic_info_to_python, value))
-- 
GitLab