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):