[Bf-blender-cvs] [c062d360cae] master: PyDoc: replace use of deprecated API call

Campbell Barton noreply at git.blender.org
Thu Sep 13 08:23:18 CEST 2018


Commit: c062d360caeb311865e1584baa4cf4d218b094d3
Author: Campbell Barton
Date:   Thu Sep 13 16:33:34 2018 +1000
Branches: master
https://developer.blender.org/rBc062d360caeb311865e1584baa4cf4d218b094d3

PyDoc: replace use of deprecated API call

===================================================================

M	doc/python_api/sphinx_doc_gen.py

===================================================================

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"



More information about the Bf-blender-cvs mailing list