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

tests: improve concatenation of Python lists

This commit is contained in:
Sébastien Helleu
2025-12-06 10:44:52 +01:00
parent 7d6b8f6943
commit a2a71b4d33
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ class WeechatRubyScript(WeechatScript):
if isinstance(node, ast.Call) \
and isinstance(node.func, ast.Attribute) \
and node.func.attr == 'config_new_option':
node.args = node.args[:11] + [ast.List(node.args[11:])]
node.args = [*node.args[:11], ast.List(node.args[11:])]
class WeechatLuaScript(WeechatScript):