From c062d360caeb311865e1584baa4cf4d218b094d3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 13 Sep 2018 16:33:34 +1000 Subject: [PATCH] PyDoc: replace use of deprecated API call --- doc/python_api/sphinx_doc_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 0eb2ebefe32..3fdd2b2c92b 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -685,7 +685,7 @@ def pyfunc2sphinx(ident, fw, module_name, type_name, identifier, py_func, is_cla if type(py_func) == MethodType: return - arg_str = inspect.formatargspec(*inspect.getfullargspec(py_func)) + arg_str = str(inspect.signature(py_func)) if not is_class: func_type = "function"