From d57e13507086ab052c43d6ff0b169eaea00cb0f0 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Thu, 4 Aug 2016 11:23:47 -0500 Subject: [PATCH] Do not munge routine names in CL error messages --- pyopencl/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 2f95679b..00cdaa2a 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -1264,9 +1264,7 @@ def _add_functionality(): val.code(), "<unknown error %d>") routine = val.routine() if routine: - result = "%s failed: %s" % ( - routine.lower().replace("_", " "), - result) + result = "%s failed: %s" % (routine, result) what = val.what() if what: if result: -- GitLab