mirror of https://github.com/nucypher/nucypher.git
Fixing equality function (still needs tests)
parent
adf71c80c8
commit
9714b2d0cb
|
@ -59,7 +59,7 @@ class Character(object):
|
|||
return pubkey_tuple_to_bytes(seal)
|
||||
|
||||
def __eq__(seal, other):
|
||||
return other == seal._as_tuple() or bytes(seal)
|
||||
return other == seal._as_tuple() or other == bytes(seal)
|
||||
|
||||
self.seal = Seal()
|
||||
|
||||
|
|
Loading…
Reference in New Issue