From 812f8cc17b1a10d88358fbef6af5d06f387a5d7c Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 9 Jan 2014 02:05:17 +0000 Subject: [PATCH] =?UTF-8?q?follow=20what=20the=20docs=20say:=20Instances?= =?UTF-8?q?=20of=20this=20class=20are=20hashable,=20and=20two=20instances?= =?UTF-8?q?=20of=20this=20class=20may=20be=20compared=20using=20=E2=80=9C?= =?UTF-8?q?=3D=3D=E2=80=9D=20and=20=E2=80=9D!=3D=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://xpra.org/svn/Xpra/trunk@5155 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/codecs/csc_opencl/colorspace_converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xpra/codecs/csc_opencl/colorspace_converter.py b/src/xpra/codecs/csc_opencl/colorspace_converter.py index e912327f83..f6b4442cae 100644 --- a/src/xpra/codecs/csc_opencl/colorspace_converter.py +++ b/src/xpra/codecs/csc_opencl/colorspace_converter.py @@ -573,11 +573,11 @@ def convert_image(self, image, retry=0): global context, program if self.do_convert_image==None: raise Exception("not initialized!") - if self.context is not context: + if self.context!=context: debug("old context=%s, new context=%s", self.context, context) log.info("using new OpenCL context (context changed)") self.init_with_device() - elif self.program is not program: + elif self.program!=program: debug("old program=%s, new program=%s", self.program, program) log.info("using new OpenCL context (program changed)") self.init_with_device()