Alexander Belopolsky <[EMAIL PROTECTED]> added the comment:
On Fri, Apr 25, 2008 at 4:37 PM, Benjamin Peterson
<[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2689>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com