1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +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):
+1 -1
View File
@@ -1385,7 +1385,7 @@ LANGUAGES = get_languages()
def get_parser():
"""Get parser arguments."""
all_languages = LANGUAGES + ['all']
all_languages = [*LANGUAGES, 'all']
default_language = LANGUAGES[0]
parser = argparse.ArgumentParser(
description=('Unparse Python code from stdin and generate code in '