Permalink
Browse files

lispy-python.py (arglist): Improve

e.g. `os.path.join' also has varargs.
  • Loading branch information...
1 parent a249ad2 commit 97c81ee820ac8fd9180938ab0bf4fbc9f2744b22 @abo-abo committed Oct 14, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 lispy-python.py
View
@@ -47,6 +47,8 @@ def arglist (sym, filename = None, line = None, column = None):
args = map (format_arg, zip (arg_info.args, defaults))
else:
args = arg_info.args
+ if arg_info.varargs:
+ args += arg_info.varargs
if arg_info.keywords:
args.append ("**" + arg_info.keywords)
return args

0 comments on commit 97c81ee

Please sign in to comment.