Changed the call to inspect.getargspec() to call inspect.signature() because the getargspec() function was removed from the inspect module.
This commit is contained in:
parent
fce1bb95e7
commit
e065b6d78d
4
bottle_sqlite.py
Executable file → Normal file
4
bottle_sqlite.py
Executable file → Normal file
|
@ -111,8 +111,8 @@ 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)
|
||||
if keyword not in argspec.args:
|
||||
signature = inspect.signature(_callback)
|
||||
if keyword not in signature.parameters:
|
||||
return callback
|
||||
|
||||
def wrapper(*args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue
Block a user