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.
This commit is contained in:
jlrdh 2023-06-29 11:11:24 +02:00 committed by GitHub
parent fce1bb95e7
commit 27e881de10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ class SQLitePlugin(object):
# Test if the original callback accepts a 'db' keyword. # Test if the original callback accepts a 'db' keyword.
# Ignore it if it does not need a database handle. # Ignore it if it does not need a database handle.
argspec = inspect.getargspec(_callback) argspec = inspect.getfullargspec(_callback)
if keyword not in argspec.args: if keyword not in argspec.args:
return callback return callback