From 04cbb959db56dedda49c756bc460f39d40f0085f Mon Sep 17 00:00:00 2001 From: SlavaPoddubsky Date: Mon, 13 Jan 2020 14:41:25 +0300 Subject: [PATCH] Use inspect.getfullargspec instead of deprecated inspect.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