1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

tests: fix _ast_num in script generator

This commit is contained in:
Sébastien Helleu
2022-08-02 23:52:31 +02:00
parent 23707a12ea
commit 6b28cc001f
+1 -1
View File
@@ -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."""