core: fix property.__eq__

This commit is contained in:
Marek Marczykowski-Górecki 2016-02-10 16:49:46 +01:00 committed by Wojtek Porczyk
parent ee1e836523
commit 380ad74494

View File

@ -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):