From 682d8b038d87d14f463c454c9a398d5fe99b3227 Mon Sep 17 00:00:00 2001 From: "Alexandr N. Zamaraev" Date: Wed, 18 Jan 2023 16:22:37 +0700 Subject: [PATCH] Correct DeprecationWarning: inspect.getargspec Correct DeprecationWarning: inspect.getargspec - #10 --- bottle_mongo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bottle_mongo.py b/bottle_mongo.py index 73e2551..84548ad 100644 --- a/bottle_mongo.py +++ b/bottle_mongo.py @@ -157,7 +157,7 @@ def setup(self, app): def apply(self, callback, context): """Return a decorated route callback.""" - args = inspect.getargspec(context.callback)[0] + args = inspect.getfullargspec(context.callback)[0] # Skip this callback if we don't need to do anything if self.keyword not in args: return callback