Merge "Add __ne__ built-in function"

This commit is contained in:
Jenkins 2017-01-10 21:31:13 +00:00 committed by Gerrit Code Review
commit 37f3899577
1 changed files with 3 additions and 0 deletions

View File

@ -485,6 +485,9 @@ class Resource(object):
return self.id == other.id
return self._info == other._info
def __ne__(self, other):
return not self.__eq__(other)
@property
def is_loaded(self):
return self._loaded