Skip to content

Commit

Permalink
fix: Remove deprecated getargspec call.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
feanil committed Apr 18, 2024
1 parent 6ea63da commit 6fb5963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmodule/tests/xml/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,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


class XmlImportFactory(Factory):
Expand Down

0 comments on commit 6fb5963

Please sign in to comment.