From 5646d9506e6464d0aeb2ff3e5f74d5e45337d2ca Mon Sep 17 00:00:00 2001 From: ducanh2002123 Date: Mon, 21 Nov 2022 12:06:39 +0700 Subject: [PATCH] Updating for 3.11 --- pyscp/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyscp/utils.py b/pyscp/utils.py index 6f5218f..d799270 100644 --- a/pyscp/utils.py +++ b/pyscp/utils.py @@ -31,8 +31,8 @@ def __call__(self): def decorator(deco): - spec = inspect.getargspec(deco) - if len(spec.args) > 1 or spec.varargs or spec.keywords: + spec = inspect.getfullargspec(deco) + if len(spec.args) > 1 or spec.varargs or spec.varkw: @functools.wraps(deco) def _fab(*dargs, **dkwargs):