From 4cff2322a0161cda78f8aa06b929a057e887ea46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 24 Oct 2017 23:31:51 +0200 Subject: [PATCH] tests: fix Tcl assignment --- tests/scripts/python/unparse.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/scripts/python/unparse.py b/tests/scripts/python/unparse.py index 741d3ef2e..9cc3aa0ed 100755 --- a/tests/scripts/python/unparse.py +++ b/tests/scripts/python/unparse.py @@ -655,9 +655,10 @@ class UnparseTcl(UnparsePython): self.fill, 'set ', node.targets[0], - ' [', + ' ', + '[' if not isinstance(node.value, ast.Str) else '', node.value, - ']', + ']' if not isinstance(node.value, ast.Str) else '', ) def _ast_attribute(self, node):