PyDoc: replace use of deprecated API call
authorCampbell Barton <ideasman42@gmail.com>
Thu, 13 Sep 2018 06:33:34 +0000 (16:33 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 13 Sep 2018 06:33:34 +0000 (16:33 +1000)
doc/python_api/sphinx_doc_gen.py

index 0eb2ebefe3253932d7865cfda6eca2bf38d40998..3fdd2b2c92bc569e3a3456c5aa534ccb43c7a2eb 100644 (file)
@@ -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"