2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

compiler.iodelay: add forgotten Conv.__eq__.

This commit is contained in:
whitequark 2015-11-17 00:51:22 +03:00
parent fd46690cf5
commit 629aacec09

View File

@ -85,6 +85,11 @@ class Conv(Expr):
assert isinstance(ref_period, float)
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):
return self.operand.free_vars()