Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion easyargs/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ def function_parser(function, parser):
main_text, params_help = parser_help_text(help_text)

# Get the function information
args, varargs, keywords, defaults = inspect.getargspec(function)
full_arg_spec = inspect.getfullargspec(function)
args = full_arg_spec.args
varargs = full_arg_spec.varargs
keywords = full_arg_spec.kwonlydefaults
defaults = full_arg_spec.defaults

if args is None:
args = []

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = py26, py27, py33, py34, py35
envlist = py26, py27, py33, py34, py35, py312

[testenv]
commands =
Expand Down