From 237c37e71995965b49b717cd43cba932ba0e654f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 2 Aug 2022 20:51:40 +0200 Subject: [PATCH] tests: fix unary op in script generator --- tests/scripts/python/unparse.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/scripts/python/unparse.py b/tests/scripts/python/unparse.py index ef2c111d9..42b4a74e7 100755 --- a/tests/scripts/python/unparse.py +++ b/tests/scripts/python/unparse.py @@ -74,7 +74,7 @@ class UnparsePython(object): } self.unaryop = { 'Invert': '~', - 'Not': 'not', + 'Not': 'not ', 'UAdd': '+', 'USub': '-', } @@ -301,11 +301,8 @@ class UnparsePython(object): def _ast_unaryop(self, node): """Add an AST UnaryOp in output.""" self.add( - '(', self.unaryop[node.op.__class__.__name__], - ' ', node.operand, - ')', )