Override Message __hash__ to use _encode_self and not recalc crcs
This commit is contained in:
@@ -68,6 +68,9 @@ class Message(Struct):
|
||||
|
||||
return MessageSet.decode(raw_bytes, bytes_to_read=len(raw_bytes))
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self._encode_self(recalc_crc=False))
|
||||
|
||||
|
||||
class PartialMessage(bytes):
|
||||
def __repr__(self):
|
||||
|
||||
Reference in New Issue
Block a user