Cleanup: comments (long lines) in python

This commit is contained in:
2019-04-29 19:59:13 +10:00
parent c7f67d60fb
commit 778542fd8f
23 changed files with 182 additions and 90 deletions

View File

@@ -86,7 +86,8 @@ typedef struct ItemConvert_FuncArg {
*/
/* arr[3] = x, self->arraydim is 0, lvalue_dim is 1 */
/* Ensures that a python sequence has expected number of items/sub-items and items are of desired type. */
/* Ensures that a python sequence has expected number of
* items/sub-items and items are of desired type. */
static int validate_array_type(PyObject *seq,
int dim,
int totdim,
@@ -203,7 +204,10 @@ static int validate_array_type(PyObject *seq,
else if (!check_item_type(item)) {
Py_DECREF(item);
/* BLI_snprintf(error_str, error_str_size, "sequence items should be of type %s", item_type_str); */
#if 0
BLI_snprintf(
error_str, error_str_size, "sequence items should be of type %s", item_type_str);
#endif
PyErr_Format(PyExc_TypeError,
"%s expected sequence items of type %s, not %s",
error_prefix,