From adfa60ead541c671db289f14cd0ae06a7764c446 Mon Sep 17 00:00:00 2001 From: zzj <29055749+zjzh@users.noreply.github.com> Date: Fri, 11 Feb 2022 21:53:00 +0800 Subject: [PATCH] refactoring code with starred pythonic idiom (#4666) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactoring code with starred pythonic idiom refactoring code with starred pythonic idiom which is more pythonic, concise, readable and efficient; how do think this change which has practical value? * removing step --- xonsh/parsers/v38.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonsh/parsers/v38.py b/xonsh/parsers/v38.py index 8e9d069ae..d6b39c129 100644 --- a/xonsh/parsers/v38.py +++ b/xonsh/parsers/v38.py @@ -365,7 +365,7 @@ class Parser(ThreeSixParser): kwarg=p[9], defaults=[], ) - self._set_regular_args(p0, p[1], p[2], p[3], p[4]) + self._set_regular_args(p0, *p[1:5]) self._set_var_args(p0, p[6], None) p[0] = p0