Skip to content

Commit 388a713

Browse files
committed
Switch to non-deprecated inspect method
1 parent 054ac8c commit 388a713

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloudbot/hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def sieve(param=None, **kwargs):
318318
"""
319319

320320
def _sieve_hook(func):
321-
assert len(inspect.getfullargspec(func).args) == 3, \
321+
assert len(inspect.signature(func).parameters) == 3, \
322322
"Sieve plugin has incorrect argument count. Needs params: bot, input, plugin"
323323

324324
hook = _get_hook(func, "sieve")

0 commit comments

Comments
 (0)