From 27e881de10d254e60523edb6b8f6654e9bd2aace Mon Sep 17 00:00:00 2001 From: jlrdh <69487096+jlrdh@users.noreply.github.com> Date: Thu, 29 Jun 2023 11:11:24 +0200 Subject: [PATCH] Make bottle_sqlite comptible with python 3.11 Python 3.11 removed the function getargspec of the inspect module and suggests replacing it with getfullargspec. --- bottle_sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bottle_sqlite.py b/bottle_sqlite.py index 7fa0e7b..f6ccc12 100755 --- a/bottle_sqlite.py +++ b/bottle_sqlite.py @@ -111,7 +111,7 @@ class SQLitePlugin(object): # Test if the original callback accepts a 'db' keyword. # Ignore it if it does not need a database handle. - argspec = inspect.getargspec(_callback) + argspec = inspect.getfullargspec(_callback) if keyword not in argspec.args: return callback