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