From d361634067bcd341ed77fbdf6605f875f9d52276 Mon Sep 17 00:00:00 2001 From: SaadYousaf Date: Wed, 8 Apr 2020 15:21:27 +0500 Subject: [PATCH] fix getargspec() DeprecationWarning for inspect. --- common/lib/xmodule/xmodule/graders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/graders.py b/common/lib/xmodule/xmodule/graders.py index 78347a0b05..9a1c15c3ef 100644 --- a/common/lib/xmodule/xmodule/graders.py +++ b/common/lib/xmodule/xmodule/graders.py @@ -151,7 +151,7 @@ def invalid_args(func, argdict): Given a function and a dictionary of arguments, returns a set of arguments from argdict that aren't accepted by func """ - args, _, keywords, _ = inspect.getargspec(func) + args, _, keywords, _, _, _, _ = inspect.getfullargspec(func) if keywords: return set() # All accepted return set(argdict) - set(args)