diff --git a/tests/scripts/python/unparse.py b/tests/scripts/python/unparse.py index 303a69cc5..a1e308384 100755 --- a/tests/scripts/python/unparse.py +++ b/tests/scripts/python/unparse.py @@ -464,7 +464,7 @@ class UnparsePerl(UnparsePython): def _ast_str(self, node): """Add an AST Str in output.""" - self.add('"%s"' % node.s.replace('$', '\\$')) + self.add('"%s"' % node.s.replace('$', '\\$').replace('@', '\\@')) class UnparseRuby(UnparsePython):