1.1 --- a/micropython/trans.py Sat Nov 06 00:57:43 2010 +0100
1.2 +++ b/micropython/trans.py Thu Jan 13 23:58:12 2011 +0100
1.3 @@ -1460,4 +1460,14 @@
1.4
1.5 self.set_block(end_block)
1.6
1.7 + def _visitPrint(self, node, function_name):
1.8 + self._startCallFunc()
1.9 + self.load_builtin(function_name, node)
1.10 +
1.11 + args = [node.dest or compiler.ast.Name("None")] + node.nodes
1.12 +
1.13 + temp_target, target, temp_context = self._generateCallFunc(args, node)
1.14 + self._doCallFunc(temp_target, target)
1.15 + self._endCallFunc(temp_target, temp_context)
1.16 +
1.17 # vim: tabstop=4 expandtab shiftwidth=4