This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, benjamin.peterson
Date 2008-04-25.21:08:31
SpamBayes Score 0.16610397
Marked as misclassified No
Message-id <d38f5330804251408m7efb61d1qe7fad3352f2505a@mail.gmail.com>
In-reply-to <1209155876.25.0.832408332215.issue2689@psf.upfronthosting.co.za>
Content
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.
History
Date User Action Args
2008-04-25 21:08:33belopolskysetspambayes_score: 0.166104 -> 0.16610397
recipients: + belopolsky, benjamin.peterson
2008-04-25 21:08:32belopolskylinkissue2689 messages
2008-04-25 21:08:31belopolskycreate