]> granicus.if.org Git - python/commitdiff
Fix some strange indentation and grammar that have been bugging me for
authorThomas Wouters <thomas@python.org>
Sat, 5 Aug 2000 21:37:50 +0000 (21:37 +0000)
committerThomas Wouters <thomas@python.org>
Sat, 5 Aug 2000 21:37:50 +0000 (21:37 +0000)
weeks.

Python/compile.c

index b76586ccb99b5ea9a26b99adfc2ccf2fa23bdba8..72f3be49b64f382f39703b042417f7b7c8461ad8 100644 (file)
@@ -1249,12 +1249,11 @@ com_subscriptlist(struct compiling *c, node *n, int assigning)
        /* Check to make backward compatible slice behavior for '[i:j]' */
        if (NCH(n) == 1) {
                node *sub = CHILD(n, 0); /* subscript */
-               /* Make it is a simple slice.
-                  Should have exactly one colon. */
-        if ((TYPE(CHILD(sub, 0)) == COLON
-             || (NCH(sub) > 1 && TYPE(CHILD(sub, 1)) == COLON))
-            && (TYPE(CHILD(sub,NCH(sub)-1)) != sliceop))
-       {
+               /* 'Basic' slice, should have exactly one colon. */
+               if ((TYPE(CHILD(sub, 0)) == COLON
+                    || (NCH(sub) > 1 && TYPE(CHILD(sub, 1)) == COLON))
+                   && (TYPE(CHILD(sub,NCH(sub)-1)) != sliceop))
+               {
                        if (assigning == OP_APPLY)
                                op = SLICE;
                        else