Permalink
Browse files

fix binary operation code generation

  • Loading branch information...
jbremer committed Apr 8, 2013
1 parent 124d65a commit 543d3370984234fda2853b5c882cb046a8afbb09
Showing with 2 additions and 0 deletions.
  1. +2 −0 codegen.py
View
@@ -439,9 +439,11 @@ def visit_Dict(self, node):
self.write('}')
def visit_BinOp(self, node):
self.write('(')
self.visit(node.left)
self.write(' %s ' % BINOP_SYMBOLS[type(node.op)])
self.visit(node.right)
self.write(')')
def visit_BoolOp(self, node):
self.write('(')

0 comments on commit 543d337

Please sign in to comment.