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

compiler.iodelay: fix typo in BinOp.__eq__.

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

View File

@ -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))