From e67705dc270823ee57beec83b809cc18359bf926 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 17 Nov 2015 00:51:37 +0300 Subject: [PATCH] compiler.iodelay: fix typo in BinOp.__eq__. --- artiq/compiler/iodelay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/iodelay.py b/artiq/compiler/iodelay.py index 71e137df9..b575caac7 100644 --- a/artiq/compiler/iodelay.py +++ b/artiq/compiler/iodelay.py @@ -121,7 +121,7 @@ class BinOp(Expr): return "{} {} {}".format(lhs, self._symbol, rhs) def __eq__(lhs, rhs): - return rhs.__class__ == lhs.__class__ and lhs.lhs == rhs.lhs and rhs.lhs == rhs.rhs + return rhs.__class__ == lhs.__class__ and lhs.lhs == rhs.lhs and lhs.rhs == rhs.rhs def eval(self, env): return self.__class__._op(self.lhs.eval(env), self.rhs.eval(env))