Skip to content

Commit

Permalink
@ pallets-eco#94 | inspect.getargspec() is deprecated, use inspect.si…
Browse files Browse the repository at this point in the history
…gnature() or inspect.getfullargspec()
  • Loading branch information
hoatle committed Jan 23, 2019
1 parent a97f285 commit cfb4d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_classful.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ def get_true_argspec(method):
"""

try:
argspec = inspect.getargspec(method)
except ValueError:
argspec = inspect.getfullargspec(method)
except AttributeError:
argspec = inspect.getargspec(method)

args = argspec[0]
if args and args[0] == 'self':
Expand Down

0 comments on commit cfb4d4a

Please sign in to comment.