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:
parent
3b0cfbbfed
commit
3e2b94f6c7
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user