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 11, 2024
1 parent c183995 commit e18e9af
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 @@ -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):
Expand Down

0 comments on commit e18e9af

Please sign in to comment.