Skip to content

Commit

Permalink
Support for Python3.11
Browse files Browse the repository at this point in the history
Method "getargspec()" is deprecated since python3.0. Using backward compatible "getfullargspec()" instead.
  • Loading branch information
Shashank-Pandey-ML committed Dec 8, 2022
1 parent e0f22ac commit d4f7093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imcsdk/imccoreutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_imc_obj(class_id, elem, mo_obj=None):
return imcmethod.ExternalMethod(class_id)
elif class_id in MO_CLASS_ID:
mo_class = load_class(class_id)
mo_class_params = inspect.getargspec(mo_class.__init__)[0][2:]
mo_class_params = inspect.getfullargspec(mo_class.__init__)[0][2:]
mo_class_param_dict = {}
for param in mo_class_params:
mo_class_param_dict[param] = None
Expand Down

0 comments on commit d4f7093

Please sign in to comment.