From e18e9afc2922eb810902e56f003e838ea278fc39 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Fri, 15 Mar 2024 12:29:26 -0400 Subject: [PATCH] fix: Remove deprecated getargspec call. This function was removed by python 3.11 so update to the alternate call that is the current recommended replacement. https://docs.python.org/3.11/library/inspect.html#inspect.getfullargspec --- xmodule/tests/xml/factories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmodule/tests/xml/factories.py b/xmodule/tests/xml/factories.py index 0c183ebd72a4..2e9824592318 100644 --- a/xmodule/tests/xml/factories.py +++ b/xmodule/tests/xml/factories.py @@ -58,7 +58,7 @@ def __repr__(self): # Extract all argument names used to construct XmlImportData objects, # so that the factory doesn't treat them as XML attributes -XML_IMPORT_ARGS = inspect.getargspec(XmlImportData.__init__).args # lint-amnesty, pylint: disable=deprecated-method +XML_IMPORT_ARGS = inspect.getfullargspec(XmlImportData.__init__).args # lint-amnesty, pylint: disable=deprecated-method class XmlImportFactory(Factory):