Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix inspect.getargspec
Browse files Browse the repository at this point in the history
  • Loading branch information
gumblex committed Feb 22, 2023
1 parent d9fdd2d commit bca5e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottle_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ 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)
argspec = inspect.getfullargspec(_callback)
if keyword not in argspec.args:
return callback

Expand Down

0 comments on commit bca5e73

Please sign in to comment.