Skip to content

Commit

Permalink
Fix getfullargspec
Browse files Browse the repository at this point in the history
  • Loading branch information
doudz committed Feb 20, 2020
1 parent 9892579 commit ecde334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rpc4django/jsonrpcdispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _dispatch(self, method, params, **kwargs):
# add some magic
# if request is the first arg of func and request is provided in kwargs we inject it
try: # Python 3
full_args = inspect.getfullargspec(method)
full_args = inspect.getfullargspec(func)
args = full_args.args
except AttributeError: # Python 2
args = inspect.getargspec(func)[0]
Expand Down
2 changes: 1 addition & 1 deletion rpc4django/xmlrpcdispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _dispatch(self, method, params, **kwargs):
# add some magic
# if request is the first arg of func and request is provided in kwargs we inject it
try: # Python 3
full_args = inspect.getfullargspec(method)
full_args = inspect.getfullargspec(func)
args = full_args.args
except AttributeError: # Python 2
args = inspect.getargspec(func)[0]
Expand Down

0 comments on commit ecde334

Please sign in to comment.