diff --git a/bottle_sqlite.py b/bottle_sqlite.py old mode 100755 new mode 100644 index 7fa0e7b..1607931 --- a/bottle_sqlite.py +++ b/bottle_sqlite.py @@ -111,8 +111,8 @@ def apply(self, callback, route): # 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):