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
1 changed files with 1 additions and 1 deletions

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