From 4439e5d0ba3ffde3841ec44405a9bcaf800be279 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 18 Apr 2019 17:17:32 +0200 Subject: Cleanup: add trailing commas to avoid right shift --- source/blender/python/intern/bpy.c | 38 +++++++++++++++------- .../blender/python/intern/bpy_rna_id_collection.c | 10 +++--- 2 files changed, 33 insertions(+), 15 deletions(-) (limited to 'source/blender/python') diff --git a/source/blender/python/intern/bpy.c b/source/blender/python/intern/bpy.c index ed576c553e4..08f4df543a8 100644 --- a/source/blender/python/intern/bpy.c +++ b/source/blender/python/intern/bpy.c @@ -274,19 +274,35 @@ static PyObject *bpy_escape_identifier(PyObject *UNUSED(self), PyObject *value) } static PyMethodDef meth_bpy_script_paths = { - "script_paths", (PyCFunction)bpy_script_paths, METH_NOARGS, bpy_script_paths_doc}; -static PyMethodDef meth_bpy_blend_paths = {"blend_paths", - (PyCFunction)bpy_blend_paths, - METH_VARARGS | METH_KEYWORDS, - bpy_blend_paths_doc}; + "script_paths", + (PyCFunction)bpy_script_paths, + METH_NOARGS, + bpy_script_paths_doc, +}; +static PyMethodDef meth_bpy_blend_paths = { + "blend_paths", + (PyCFunction)bpy_blend_paths, + METH_VARARGS | METH_KEYWORDS, + bpy_blend_paths_doc, +}; static PyMethodDef meth_bpy_user_resource = { - "user_resource", (PyCFunction)bpy_user_resource, METH_VARARGS | METH_KEYWORDS, NULL}; -static PyMethodDef meth_bpy_resource_path = {"resource_path", - (PyCFunction)bpy_resource_path, - METH_VARARGS | METH_KEYWORDS, - bpy_resource_path_doc}; + "user_resource", + (PyCFunction)bpy_user_resource, + METH_VARARGS | METH_KEYWORDS, + NULL, +}; +static PyMethodDef meth_bpy_resource_path = { + "resource_path", + (PyCFunction)bpy_resource_path, + METH_VARARGS | METH_KEYWORDS, + bpy_resource_path_doc, +}; static PyMethodDef meth_bpy_escape_identifier = { - "escape_identifier", (PyCFunction)bpy_escape_identifier, METH_O, bpy_escape_identifier_doc}; + "escape_identifier", + (PyCFunction)bpy_escape_identifier, + METH_O, + bpy_escape_identifier_doc, +}; static PyObject *bpy_import_test(const char *modname) { diff --git a/source/blender/python/intern/bpy_rna_id_collection.c b/source/blender/python/intern/bpy_rna_id_collection.c index bb7604aea97..825961e807b 100644 --- a/source/blender/python/intern/bpy_rna_id_collection.c +++ b/source/blender/python/intern/bpy_rna_id_collection.c @@ -378,10 +378,12 @@ int BPY_rna_id_collection_module(PyObject *mod_par) PyModule_AddObject(mod_par, "_rna_id_collection_user_map", PyCFunction_New(&user_map, NULL)); - static PyMethodDef batch_remove = {"batch_remove", - (PyCFunction)bpy_batch_remove, - METH_VARARGS | METH_KEYWORDS, - bpy_batch_remove_doc}; + static PyMethodDef batch_remove = { + "batch_remove", + (PyCFunction)bpy_batch_remove, + METH_VARARGS | METH_KEYWORDS, + bpy_batch_remove_doc, + }; PyModule_AddObject( mod_par, "_rna_id_collection_batch_remove", PyCFunction_New(&batch_remove, NULL)); -- cgit v1.2.3