Skip to content

Commit

Permalink
raising TypeError instead of returning it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Parvin Taheri committed Oct 14, 2017
1 parent 470dfa8 commit fa149f7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions acitoolkit/acibaseobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __eq__(self, other):
if isinstance(other, self.__class__):
key_attrs = attrgetter('item', 'status', 'relation_type')
return key_attrs(self) == key_attrs(other)
return NotImplemented
raise TypeError

def __hash__(self):
return hash((self.item, self.status, self.relation_type))
Expand Down Expand Up @@ -966,10 +966,6 @@ def _get_url_extension(self):
assert(self.has_parent())
return self.get_parent()._get_url_extension()+rn





def __str__(self):
return self.name

Expand Down

0 comments on commit fa149f7

Please sign in to comment.