Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-19 05:21:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-19 05:58:35 +0300
commit8a61ea7296f17428f062a840c560e08a5a2f72ea (patch)
treeae91204131c79d7c3aa9e951b3eb5d7a6968d5b8 /source/blender/python/intern
parentc59370bf643f6e85473c560c8f5edcf73cc36e8e (diff)
Cleanup: add trailing commas
Prevents clang-format merging into a single line.
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r--source/blender/python/intern/bpy_app_icons.c2
-rw-r--r--source/blender/python/intern/bpy_app_ocio.c2
-rw-r--r--source/blender/python/intern/bpy_app_translations.c2
-rw-r--r--source/blender/python/intern/bpy_library_load.c2
-rw-r--r--source/blender/python/intern/bpy_msgbus.c2
-rw-r--r--source/blender/python/intern/bpy_operator.c2
-rw-r--r--source/blender/python/intern/bpy_props.c2
-rw-r--r--source/blender/python/intern/bpy_rna.c24
-rw-r--r--source/blender/python/intern/bpy_utils_previews.c2
-rw-r--r--source/blender/python/intern/bpy_utils_units.c4
10 files changed, 22 insertions, 22 deletions
diff --git a/source/blender/python/intern/bpy_app_icons.c b/source/blender/python/intern/bpy_app_icons.c
index 12315a6e112..075e2f57ec4 100644
--- a/source/blender/python/intern/bpy_app_icons.c
+++ b/source/blender/python/intern/bpy_app_icons.c
@@ -160,7 +160,7 @@ static struct PyMethodDef M_AppIcons_methods[] = {
METH_VARARGS | METH_KEYWORDS, bpy_app_icons_new_triangles_from_file_doc},
{"release", (PyCFunction)bpy_app_icons_release,
METH_VARARGS | METH_KEYWORDS, bpy_app_icons_release_doc},
- {NULL, NULL, 0, NULL}
+ {NULL, NULL, 0, NULL},
};
static struct PyModuleDef M_AppIcons_module_def = {
diff --git a/source/blender/python/intern/bpy_app_ocio.c b/source/blender/python/intern/bpy_app_ocio.c
index 9997e6b87f1..546261f82fa 100644
--- a/source/blender/python/intern/bpy_app_ocio.c
+++ b/source/blender/python/intern/bpy_app_ocio.c
@@ -41,7 +41,7 @@ static PyStructSequence_Field app_ocio_info_fields[] = {
{(char *)"supported", (char *)("Boolean, True when Blender is built with OpenColorIO support")},
{(char *)("version"), (char *)("The OpenColorIO version as a tuple of 3 numbers")},
{(char *)("version_string"), (char *)("The OpenColorIO version formatted as a string")},
- {NULL}
+ {NULL},
};
static PyStructSequence_Desc app_ocio_info_desc = {
diff --git a/source/blender/python/intern/bpy_app_translations.c b/source/blender/python/intern/bpy_app_translations.c
index 2a5efc15b87..acb44f86f75 100644
--- a/source/blender/python/intern/bpy_app_translations.c
+++ b/source/blender/python/intern/bpy_app_translations.c
@@ -782,7 +782,7 @@ static PyTypeObject BlenderAppTranslationsType = {
NULL, /* PyObject *tp_cache; */
NULL, /* PyObject *tp_subclasses; */
NULL, /* PyObject *tp_weaklist; */
- NULL
+ NULL,
};
PyObject *BPY_app_translations_struct(void)
diff --git a/source/blender/python/intern/bpy_library_load.c b/source/blender/python/intern/bpy_library_load.c
index 5c64a65fb58..b44e269e2c3 100644
--- a/source/blender/python/intern/bpy_library_load.c
+++ b/source/blender/python/intern/bpy_library_load.c
@@ -167,7 +167,7 @@ static PyTypeObject bpy_lib_Type = {
NULL, /* PyObject *tp_cache; */
NULL, /* PyObject *tp_subclasses; */
NULL, /* PyObject *tp_weaklist; */
- NULL
+ NULL,
};
PyDoc_STRVAR(bpy_lib_load_doc,
diff --git a/source/blender/python/intern/bpy_msgbus.c b/source/blender/python/intern/bpy_msgbus.c
index 101cc8b41a3..a1713bd7aae 100644
--- a/source/blender/python/intern/bpy_msgbus.c
+++ b/source/blender/python/intern/bpy_msgbus.c
@@ -377,7 +377,7 @@ static struct PyMethodDef BPy_msgbus_methods[] = {
{"subscribe_rna", (PyCFunction)bpy_msgbus_subscribe_rna, METH_VARARGS | METH_KEYWORDS, bpy_msgbus_subscribe_rna_doc},
{"publish_rna", (PyCFunction)bpy_msgbus_publish_rna, METH_VARARGS | METH_KEYWORDS, bpy_msgbus_publish_rna_doc},
{"clear_by_owner", (PyCFunction)bpy_msgbus_clear_by_owner, METH_O, bpy_msgbus_clear_by_owner_doc},
- {NULL, NULL, 0, NULL}
+ {NULL, NULL, 0, NULL},
};
static struct PyModuleDef _bpy_msgbus_def = {
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c
index d3abaf43aef..56db0a604aa 100644
--- a/source/blender/python/intern/bpy_operator.c
+++ b/source/blender/python/intern/bpy_operator.c
@@ -438,7 +438,7 @@ static struct PyModuleDef bpy_ops_module = {
NULL,
-1, /* multiple "initialization" just copies the module dict. */
bpy_ops_methods,
- NULL, NULL, NULL, NULL
+ NULL, NULL, NULL, NULL,
};
PyObject *BPY_operator_module(void)
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c
index b7242680dca..206929a4271 100644
--- a/source/blender/python/intern/bpy_props.c
+++ b/source/blender/python/intern/bpy_props.c
@@ -3193,7 +3193,7 @@ static struct PyModuleDef props_module = {
".. note:: All parameters to these functions must be passed as keywords.\n",
-1, /* multiple "initialization" just copies the module dict. */
props_methods,
- NULL, NULL, NULL, NULL
+ NULL, NULL, NULL, NULL,
};
PyObject *BPY_rna_props(void)
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c
index f25f007033f..0b89a6eaa55 100644
--- a/source/blender/python/intern/bpy_rna.c
+++ b/source/blender/python/intern/bpy_rna.c
@@ -513,7 +513,7 @@ static Mathutils_Callback mathutils_rna_array_cb = {
(BaseMathGetFunc) mathutils_rna_vector_get,
(BaseMathSetFunc) mathutils_rna_vector_set,
(BaseMathGetIndexFunc) mathutils_rna_vector_get_index,
- (BaseMathSetIndexFunc) mathutils_rna_vector_set_index
+ (BaseMathSetIndexFunc) mathutils_rna_vector_set_index,
};
@@ -569,7 +569,7 @@ static Mathutils_Callback mathutils_rna_matrix_cb = {
mathutils_rna_matrix_get,
mathutils_rna_matrix_set,
NULL,
- NULL
+ NULL,
};
static short pyrna_rotation_euler_order_get(
@@ -5277,7 +5277,7 @@ static struct PyMethodDef pyrna_prop_methods[] = {
};
static struct PyMethodDef pyrna_prop_array_methods[] = {
- {NULL, NULL, 0, NULL}
+ {NULL, NULL, 0, NULL},
};
static struct PyMethodDef pyrna_prop_collection_methods[] = {
@@ -5977,7 +5977,7 @@ PyTypeObject pyrna_struct_meta_idprop_Type = {
NULL, /* PyObject *tp_cache; */
NULL, /* PyObject *tp_subclasses; */
NULL, /* PyObject *tp_weaklist; */
- NULL
+ NULL,
};
@@ -6067,7 +6067,7 @@ PyTypeObject pyrna_struct_Type = {
NULL, /* PyObject *tp_cache; */
NULL, /* PyObject *tp_subclasses; */
NULL, /* PyObject *tp_weaklist; */
- NULL
+ NULL,
};
/*-----------------------BPy_PropertyRNA method def------------------------------*/
@@ -6152,7 +6152,7 @@ PyTypeObject pyrna_prop_Type = {
NULL, /* PyObject *tp_cache; */
NULL, /* PyObject *tp_subclasses; */
NULL, /* PyObject *tp_weaklist; */
- NULL
+ NULL,
};
PyTypeObject pyrna_prop_array_Type = {
@@ -6235,7 +6235,7 @@ PyTypeObject pyrna_prop_array_Type = {
NULL, /* PyObject *tp_cache; */
NULL, /* PyObject *tp_subclasses; */
NULL, /* PyObject *tp_weaklist; */
- NULL
+ NULL,
};
PyTypeObject pyrna_prop_collection_Type = {
@@ -6319,7 +6319,7 @@ PyTypeObject pyrna_prop_collection_Type = {
NULL, /* PyObject *tp_cache; */
NULL, /* PyObject *tp_subclasses; */
NULL, /* PyObject *tp_weaklist; */
- NULL
+ NULL,
};
/* only for add/remove/move methods */
@@ -6404,7 +6404,7 @@ static PyTypeObject pyrna_prop_collection_idprop_Type = {
NULL, /* PyObject *tp_cache; */
NULL, /* PyObject *tp_subclasses; */
NULL, /* PyObject *tp_weaklist; */
- NULL
+ NULL,
};
/*-----------------------BPy_PropertyRNA method def------------------------------*/
@@ -6489,7 +6489,7 @@ PyTypeObject pyrna_func_Type = {
NULL, /* PyObject *tp_cache; */
NULL, /* PyObject *tp_subclasses; */
NULL, /* PyObject *tp_weaklist; */
- NULL
+ NULL,
};
#ifdef USE_PYRNA_ITER
@@ -6592,7 +6592,7 @@ static PyTypeObject pyrna_prop_collection_iter_Type = {
NULL, /* PyObject *tp_cache; */
NULL, /* PyObject *tp_subclasses; */
NULL, /* PyObject *tp_weaklist; */
- NULL
+ NULL,
};
static PyObject *pyrna_prop_collection_iter_CreatePyObject(PointerRNA *ptr, PropertyRNA *prop)
@@ -8312,7 +8312,7 @@ PyDoc_STRVAR(pyrna_unregister_class_doc,
" before unregistering.\n"
);
PyMethodDef meth_bpy_unregister_class = {
- "unregister_class", pyrna_unregister_class, METH_O, pyrna_unregister_class_doc
+ "unregister_class", pyrna_unregister_class, METH_O, pyrna_unregister_class_doc,
};
static PyObject *pyrna_unregister_class(PyObject *UNUSED(self), PyObject *py_class)
{
diff --git a/source/blender/python/intern/bpy_utils_previews.c b/source/blender/python/intern/bpy_utils_previews.c
index fed7c7210de..4734da4b1be 100644
--- a/source/blender/python/intern/bpy_utils_previews.c
+++ b/source/blender/python/intern/bpy_utils_previews.c
@@ -174,7 +174,7 @@ static struct PyModuleDef bpy_utils_previews_module = {
bpy_utils_previews_doc,
0,
bpy_utils_previews_methods,
- NULL, NULL, NULL, NULL
+ NULL, NULL, NULL, NULL,
};
diff --git a/source/blender/python/intern/bpy_utils_units.c b/source/blender/python/intern/bpy_utils_units.c
index 1d1108e1af0..5a8b8606f74 100644
--- a/source/blender/python/intern/bpy_utils_units.c
+++ b/source/blender/python/intern/bpy_utils_units.c
@@ -301,7 +301,7 @@ static PyObject *bpyunits_to_string(PyObject *UNUSED(self), PyObject *args, PyOb
static PyMethodDef bpyunits_methods[] = {
{"to_value", (PyCFunction)bpyunits_to_value, METH_VARARGS | METH_KEYWORDS, bpyunits_to_value_doc},
{"to_string", (PyCFunction)bpyunits_to_string, METH_VARARGS | METH_KEYWORDS, bpyunits_to_string_doc},
- {NULL, NULL, 0, NULL}
+ {NULL, NULL, 0, NULL},
};
PyDoc_STRVAR(bpyunits_doc,
@@ -314,7 +314,7 @@ static struct PyModuleDef bpyunits_module = {
bpyunits_doc,
-1, /* multiple "initialization" just copies the module dict. */
bpyunits_methods,
- NULL, NULL, NULL, NULL
+ NULL, NULL, NULL, NULL,
};
PyObject *BPY_utils_units(void)