From 380ad7449499f974e2ca94edbe49cf18a2087257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 10 Feb 2016 16:49:46 +0100 Subject: [PATCH] core: fix property.__eq__ --- qubes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/__init__.py b/qubes/__init__.py index 3eba978d..b72ba98f 100644 --- a/qubes/__init__.py +++ b/qubes/__init__.py @@ -701,7 +701,7 @@ class property(object): # pylint: disable=redefined-builtin,invalid-name def __eq__(self, other): - return self.__name__ == other.__name__ + return isinstance(other, property) and self.__name__ == other.__name__ def _enforce_write_once(self, instance):