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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user