Use inspect.getfullargspec() function because inspect.getargspec() is deprecated

This commit is contained in:
Alen Mistric 2018-09-16 07:43:06 +02:00
parent db4b81e2e4
commit 89b15dd8b1

View File

@ -104,7 +104,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