From bbb2ca7ddac4f746af51966b5235cf29a263868d Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Fri, 1 Apr 2016 02:23:45 -0500 Subject: [PATCH] Fix for Windows build option escaping --- pyopencl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 9f9b6c92..12af8f35 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -382,7 +382,7 @@ class Program(object): import sys if sys.platform.startswith("win"): # not sure how to escape that - assert '"' not in s + assert b'"' not in s return b'"' + s + b'"' else: return b"'" + s.replace(b"'", b"'\"'\"'") + b"'" -- GitLab