mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
refactoring code with starred pythonic idiom (#4666)
* 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
This commit is contained in:
parent
dbc71bd1a4
commit
adfa60ead5
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ class Parser(ThreeSixParser):
|
||||||
kwarg=p[9],
|
kwarg=p[9],
|
||||||
defaults=[],
|
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)
|
self._set_var_args(p0, p[6], None)
|
||||||
p[0] = p0
|
p[0] = p0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue