tests: fix AST return in TCL
This commit is contained in:
parent
b2344fe5d6
commit
5ae557fa52
@ -786,6 +786,17 @@ class UnparseTcl(UnparsePython):
|
|||||||
"""Add an AST Pass in output."""
|
"""Add an AST Pass in output."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def _ast_return(self, node):
|
||||||
|
"""Add an AST Return in output."""
|
||||||
|
self.fill('return')
|
||||||
|
if node.value:
|
||||||
|
self.add(
|
||||||
|
' ',
|
||||||
|
(self.prefix, '$'),
|
||||||
|
node.value,
|
||||||
|
(self.prefix, None),
|
||||||
|
)
|
||||||
|
|
||||||
def _ast_str(self, node):
|
def _ast_str(self, node):
|
||||||
"""Add an AST Str in output."""
|
"""Add an AST Str in output."""
|
||||||
self.add('"%s"' % node.s.replace('$', '\\$'))
|
self.add('"%s"' % node.s.replace('$', '\\$'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user