Skip to content

Commit

Permalink
fixed __ne__ for MethodType
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail lazko authored and kozlovsky committed Mar 10, 2017
1 parent 87e3dcf commit 40e3b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pony/orm/ormtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, method):
def __eq__(self, other):
return type(other) is MethodType and self.obj == other.obj and self.func == other.func
def __ne__(self, other):
return type(other) is not SetType or self.obj != other.obj or self.func != other.func
return type(other) is not MethodType or self.obj != other.obj or self.func != other.func
def __hash__(self):
return hash(self.obj) ^ hash(self.func)

Expand Down

0 comments on commit 40e3b07

Please sign in to comment.