1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Return False instead of None for mismatched objects

This commit is contained in:
Alex Forencich 2017-05-18 13:52:05 -07:00
parent 3b0cfbbfed
commit 3e2b94f6c7

View File

@ -169,6 +169,7 @@ class AXIStreamFrame(object):
def __eq__(self, other):
if type(other) is AXIStreamFrame:
return self.data == other.data
return False
def __repr__(self):
return 'AXIStreamFrame(data=%s, keep=%s, dest=%s, user=%s)' % (repr(self.data), repr(self.keep), repr(self.dest), repr(self.user))