Skip to content

Commit 6dc510a

Browse files
whitequarksbourdeauducq
whitequark
authored andcommittedJun 29, 2016
compiler.embedding: use the builtin print as RPC.
Fixes #206.
1 parent d22eefc commit 6dc510a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎artiq/compiler/embedding.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
from .transforms.asttyped_rewriter import LocalExtractor
2020

2121

22-
def coredevice_print(x): print(x)
23-
24-
2522
class ObjectMap:
2623
def __init__(self):
2724
self.current_key = 0
@@ -325,7 +322,7 @@ def visit_Name(self, node):
325322
else:
326323
# Try to find this value in the host environment and quote it.
327324
if node.id == "print":
328-
return self.quote(coredevice_print, node.loc)
325+
return self.quote(print, node.loc)
329326
elif node.id in self.host_environment:
330327
return self.quote(self.host_environment[node.id], node.loc)
331328
else:

0 commit comments

Comments
 (0)