Skip to content
Browse files

Workaround for bug in cgen. See #32.

  • Loading branch information...
1 parent d5ccf53 commit 5788be115240a85688d434235f45f1b1e1e92c04 Shoaib Kamil committed Apr 24, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 asp/codegen/cpp_ast.py
View
5 asp/codegen/cpp_ast.py
@@ -389,6 +389,11 @@ def __init__(self, left, op, right):
self.right = right
self._fields = ('left', 'op', 'right')
+ # cgen as of 4/24/2012 has a bug that directly calls split() on a Compare object.
+ # see https://github.com/shoaibkamil/asp/issues/32
+ def split(self, t):
+ return str(self).split(t)
+
def generate(self, with_semicolon=False):
yield '%s %s %s' % (self.left, self.op, self.right)

0 comments on commit 5788be1

Please sign in to comment.
Something went wrong with that request. Please try again.