diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-04 09:54:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-04 09:54:40 +0300 |
commit | 7719c110064fc6f90c93c5339681b7dd9f5cbd63 (patch) | |
tree | 6939cd7d5eeeb083d9846ea1945a74dd4a4dc3cb /source/blender/python/generic/bgl.c | |
parent | 854db8951bc15a7545eea3ff2219a28897698ead (diff) |
Cleanup: strip trailing space in Python module
Diffstat (limited to 'source/blender/python/generic/bgl.c')
-rw-r--r-- | source/blender/python/generic/bgl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/generic/bgl.c b/source/blender/python/generic/bgl.c index 072021c6ac9..7b9292827b0 100644 --- a/source/blender/python/generic/bgl.c +++ b/source/blender/python/generic/bgl.c @@ -862,7 +862,7 @@ static PyObject *Buffer_slice(Buffer *self, int begin, int end) { PyObject *list; int count; - + if (begin < 0) begin = 0; if (end > self->dimensions[0]) end = self->dimensions[0]; if (begin > end) begin = end; @@ -910,11 +910,11 @@ static int Buffer_ass_slice(Buffer *self, int begin, int end, PyObject *seq) { PyObject *item; int count, err = 0; - + if (begin < 0) begin = 0; if (end > self->dimensions[0]) end = self->dimensions[0]; if (begin > end) begin = end; - + if (!PySequence_Check(seq)) { PyErr_Format(PyExc_TypeError, "buffer[:] = value, invalid assignment. " @@ -930,7 +930,7 @@ static int Buffer_ass_slice(Buffer *self, int begin, int end, PyObject *seq) "Expected: %d (given: %d)", count, end - begin); return -1; } - + for (count = begin; count < end; count++) { item = PySequence_GetItem(seq, count - begin); if (item) { @@ -3743,4 +3743,4 @@ static PyObject *Method_ShaderSource(PyObject *UNUSED(self), PyObject *args) } -/** \} */
\ No newline at end of file +/** \} */ |