diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-02 23:52:31 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-02 23:52:31 +0200 |
commit | 6b28cc001ff4613ea86113078b207881ab4126fc (patch) | |
tree | 9bb86b500c3be8d69090d953cf075bfc2dc0e2c4 /tests/scripts/python | |
parent | 23707a12ea33c2747726c9d1d5917f33cbb9d3ea (diff) | |
download | weechat-6b28cc001ff4613ea86113078b207881ab4126fc.zip |
tests: fix _ast_num in script generator
Diffstat (limited to 'tests/scripts/python')
-rwxr-xr-x | tests/scripts/python/unparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scripts/python/unparse.py b/tests/scripts/python/unparse.py index 9fc24ee4a..d9c7516ad 100755 --- a/tests/scripts/python/unparse.py +++ b/tests/scripts/python/unparse.py @@ -277,7 +277,7 @@ class UnparsePython(object): def _ast_num(self, node): """Add an AST Num in output.""" # note: deprecated since Python 3.8, replaced by ast.Constant - self._ast_constant(node) + self.add(repr(node.n)) def _ast_pass(self, node): # pylint: disable=unused-argument """Add an AST Pass in output.""" |