From 1cace5588a5473de8062f89bca89fe2069574c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 24 Oct 2017 23:04:53 +0200 Subject: [PATCH] tests: escape "@" in Perl strings --- tests/scripts/python/unparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):