compiler.iodelay: add forgotten Conv.__eq__.

This commit is contained in:
whitequark 2015-11-17 00:51:22 +03:00
parent fd46690cf5
commit 629aacec09
1 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,11 @@ class Conv(Expr):
assert isinstance(ref_period, float) assert isinstance(ref_period, float)
self.operand, self.ref_period = operand, ref_period self.operand, self.ref_period = operand, ref_period
def __eq__(lhs, rhs):
return rhs.__class__ == lhs.__class__ and \
lhs.ref_period == rhs.ref_period and \
lhs.operand == rhs.operand
def free_vars(self): def free_vars(self):
return self.operand.free_vars() return self.operand.free_vars()