From 8b7008967e07d99b4a60fe1c1ce6abde8a2e7657 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Sat, 15 Mar 2014 17:31:08 +0100 Subject: [PATCH] fix comparison of Proxy objects --- mygpo/core/proxy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mygpo/core/proxy.py b/mygpo/core/proxy.py index 7767cde6..6e77ca07 100644 --- a/mygpo/core/proxy.py +++ b/mygpo/core/proxy.py @@ -36,11 +36,11 @@ def proxy_object(obj, **kwargs): def __eq__(self, other): # if "other" is of the same type as proxied obj, compare directly - if isinstance(other, type(self.obj)): - return self.obj == other + if isinstance(other, ProxyObject): + return self.obj == other.obj else: - return self.obj == other.obj + return self.obj == other def __hash__(self): return hash(self.obj) -- 2.11.4.GIT