Skip to content

Commit

Permalink
Merge bf27afd into d279a73
Browse files Browse the repository at this point in the history
  • Loading branch information
hfaran committed Dec 28, 2018
2 parents d279a73 + bf27afd commit 1738a9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tornado_json/gen.py
Expand Up @@ -15,5 +15,5 @@ def coroutine(func, replace_callback=True):
wrapper = gen.coroutine(func)
else:
wrapper = gen.coroutine(func, replace_callback)
wrapper.__argspec_args = inspect.getfullargspec(func).args
wrapper.__argspec_args = inspect.getargspec(func).args
return wrapper
2 changes: 1 addition & 1 deletion tornado_json/routes.py
Expand Up @@ -93,7 +93,7 @@ def yield_args(module, cls_name, method_name):
# If using tornado_json.gen.coroutine, original args are annotated...
argspec_args = getattr(method, "__argspec_args",
# otherwise just grab them from the method
inspect.getfullargspec(method).args)
inspect.getargspec(method).args)

return [a for a in argspec_args if a not in ["self"]]

Expand Down

0 comments on commit 1738a9b

Please sign in to comment.