Explicitly set to None to have consistent behavior in Python 2 and Python 3
This commit is contained in:
@@ -29,8 +29,7 @@ class Code(object):
|
||||
def __eq__(self, other):
|
||||
return self.raw == other.raw
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.raw)
|
||||
__hash__ = None
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self == other
|
||||
|
||||
Reference in New Issue
Block a user