Issue 2689: Fix indentation in range_item (original) (raw)
On Fri, Apr 25, 2008 at 4:37 PM, Benjamin Peterson <report@bugs.python.org> wrote:
I don't really see what's wrong with the indentation.
Sorry, I thought it would be obvious from the patch. As of revision 62505, Objects/rangeobject.c:216 has the following code:
216 if (i < 0 || i >= len) { 217 if (!PyErr_Occurred()) 218 PyErr_SetString(PyExc_IndexError, 219 "range object index out of range"); 220 return NULL; 221 }
Note that the inner if has no { after the condition and therefore terminates at line 219. Thus the next line should be aligned with the inner if and the } at line 221 should be aligned with the outer if.