From 6b3385d5e83a53071ca13bc4e4e519cea615fc17 Mon Sep 17 00:00:00 2001 From: Kevin Raddatz Date: Sun, 4 Nov 2018 22:05:01 +0100 Subject: [PATCH] use "inspect.getfullargspec()" instead of "inspect.getargspec" according to the the documentation of inspect (https://docs.python.org/3.6/library/inspect.html#inspect.getargspec) you should use getfullargspec, which is a drop-in replacement for getargspec --- flask_classy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_classy.py b/flask_classy.py index e0c5ccd..0d5a4f7 100644 --- a/flask_classy.py +++ b/flask_classy.py @@ -294,7 +294,7 @@ def get_interesting_members(base_class, cls): def get_true_argspec(method): """Drills through layers of decorators attempting to locate the actual argspec for the method.""" - argspec = inspect.getargspec(method) + argspec = inspect.getfullargspec(method) args = argspec[0] if args and args[0] == 'self': return argspec