Commit: 530b23230990d8eb521d70b29f83b4da2c611966 Author: Campbell Barton Date: Thu Dec 15 10:51:06 2022 +1100 Branches: master https://developer.blender.org/rB530b23230990d8eb521d70b29f83b4da2c611966
Cleanup: use more descriptive name for function in BMesh doc generation Avoid the term "print" as the function doesn't print. =================================================================== M doc/python_api/rst_from_bmesh_opdefines.py =================================================================== diff --git a/doc/python_api/rst_from_bmesh_opdefines.py b/doc/python_api/rst_from_bmesh_opdefines.py index 3b7093f0156..1285938feb1 100644 --- a/doc/python_api/rst_from_bmesh_opdefines.py +++ b/doc/python_api/rst_from_bmesh_opdefines.py @@ -370,7 +370,7 @@ def main(): args_in_wash = get_args_wash(args_in, args_in_index, False) - fw(".. function:: %s(bm, %s)\n\n" % (b[0], ", ".join([print_arg_in(arg) for arg in args_in_wash]))) + fw(".. function:: %s(bm, %s)\n\n" % (b[0], ", ".join([arg_name_with_default(arg) for arg in args_in_wash]))) # -- wash the comment comment_washed = [] @@ -423,8 +423,8 @@ def main(): print(OUT_RST) -def print_arg_in(arg): - (name, default_value, _, _) = arg +def arg_name_with_default(arg): + name, default_value, _, _ = arg if default_value is None: return name return name + '=' + default_value _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs