Skip to content

Commit f5e4b40

Browse files
committed
1 parent 5badbc4 commit f5e4b40

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gcloud/datastore/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __eq__(self, other):
8787
:returns: True if the entities compare equal, else False.
8888
"""
8989
if not isinstance(other, Entity):
90-
raise NotImplementedError
90+
return NotImplemented
9191

9292
return (self.key == other.key and
9393
dict(self) == dict(other))

gcloud/datastore/key.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __eq__(self, other):
8787
:returns: True if the keys compare equal, else False.
8888
"""
8989
if not isinstance(other, Key):
90-
raise NotImplementedError
90+
return NotImplemented
9191

9292
if self.is_partial or other.is_partial:
9393
return False

0 commit comments

Comments
 (0)