core: fix property.__eq__
This commit is contained in:
parent
ee1e836523
commit
380ad74494
@ -701,7 +701,7 @@ class property(object): # pylint: disable=redefined-builtin,invalid-name
|
|||||||
|
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return self.__name__ == other.__name__
|
return isinstance(other, property) and self.__name__ == other.__name__
|
||||||
|
|
||||||
|
|
||||||
def _enforce_write_once(self, instance):
|
def _enforce_write_once(self, instance):
|
||||||
|
Loading…
Reference in New Issue
Block a user