[issue2689] Fix indentation in range_item
Alexander Belopolsky
report at bugs.python.org
Fri Apr 25 23:08:33 CEST 2008
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
On Fri, Apr 25, 2008 at 4:37 PM, Benjamin Peterson
<report at 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.
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2689>
__________________________________
More information about the Python-bugs-list
mailing list