Fix for python 3

This commit is contained in:
Siu Kwan Lam 2013-02-27 13:48:08 -06:00
commit 93cd20e933
8 changed files with 41 additions and 28 deletions

View file

@ -20,7 +20,7 @@ class TestInlineAsm(TestCase):
inlineasm = InlineAsm.get(iaty, "bswap $0", "=r,r")
self.assertIn('asm "bswap $0", "=r,r"', str(inlineasm))
builder.ret(builder.call(inlineasm, [fn.args[0]]))
print fn
print(fn)
if __name__ == '__main__':
unittest.main()

View file

@ -10,7 +10,7 @@ def test():
alloc = b.malloc_array(Type.int(), Constant.int(Type.int(), 10), 'hee')
inst = b.free(alloc)
b.ret_void()
print m
print(m)
if __name__ == '__main__':
test()

View file

@ -29,7 +29,7 @@ class TestTBAABuilder(TestCase):
bldr.ret_void()
print mod
print(mod)
if __name__ == '__main__':
unittest.main()

View file

@ -122,7 +122,7 @@ def debug_in_gdb(lfunc):
# Now let's compile and run!
retval = ee.run_function(lfunc, [arg1])
print retval.as_real(float_type)
print(retval.as_real(float_type))
if __name__ == '__main__':