Merge "Add __ne__ built-in function"

changes/97/366997/1
Jenkins 2016-09-07 18:39:50 +00:00 committed by Gerrit Code Review
commit 60339db638
1 changed files with 3 additions and 0 deletions

View File

@ -42,6 +42,9 @@ class BaseDataModel(object):
return self.to_dict() == other.to_dict()
return False
def __ne__(self, other):
return not self.__eq__(other)
@classmethod
def from_dict(cls, dict):
return cls(**dict)