From 1ab738f8857c113dfc77b455cbd391a965529b41 Mon Sep 17 00:00:00 2001
From: Yichao Yu <yyc1992@gmail.com>
Date: Fri, 16 May 2014 06:26:50 -0400
Subject: [PATCH] avoid infinite recursion in error printing ....

---
 pyopencl/cffi_cl.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyopencl/cffi_cl.py b/pyopencl/cffi_cl.py
index 4746b2bb..16fd418c 100644
--- a/pyopencl/cffi_cl.py
+++ b/pyopencl/cffi_cl.py
@@ -248,7 +248,7 @@ class Error(Exception):
         self.routine = routine
         self.code = code
         self.what = msg
-        super(Error, self).__init__(self, msg)
+        super(Error, self).__init__(msg)
 
 
 class MemoryError(Error):
-- 
GitLab