Skip to content

Commit

Permalink
compiler.embedding: use the builtin print as RPC.
Browse files Browse the repository at this point in the history
Fixes #206.
whitequark authored and sbourdeauducq committed Jun 29, 2016
1 parent d22eefc commit 6dc510a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions artiq/compiler/embedding.py
Original file line number Diff line number Diff line change
@@ -19,9 +19,6 @@
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 @@ def visit_Name(self, node):
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:

0 comments on commit 6dc510a

Please sign in to comment.