def func_accepts_var_args(func):
if six.PY2:<EOL><INDENT>return inspect.getargspec(func)[<NUM_LIT:1>] is not None<EOL><DEDENT>return any(<EOL>p for p in inspect.signature(func).parameters.values()<EOL>if p.kind == p.VAR_POSITIONAL<EOL>)<EOL>
Return True if function 'func' accepts positional arguments *args.