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, - ')', )