compiler.embedding: use the builtin print as RPC.

Fixes #206.
This commit is contained in:
whitequark 2016-06-29 11:57:43 +08:00 committed by Sebastien Bourdeauducq
parent d22eefc13e
commit 6dc510a976
1 changed files with 1 additions and 4 deletions

View File

@ -19,9 +19,6 @@ from .transforms import ASTTypedRewriter, Inferencer, IntMonomorphizer
from .transforms.asttyped_rewriter import LocalExtractor
def coredevice_print(x): print(x)
class ObjectMap:
def __init__(self):
self.current_key = 0
@ -325,7 +322,7 @@ class StitchingASTTypedRewriter(ASTTypedRewriter):
else:
# Try to find this value in the host environment and quote it.
if node.id == "print":
return self.quote(coredevice_print, node.loc)
return self.quote(print, node.loc)
elif node.id in self.host_environment:
return self.quote(self.host_environment[node.id], node.loc)
else: