diff Python/compile.c @ 13873:d014c8ab6a82 legacy-trunk

Fix some strange indentation and grammar that have been bugging me for weeks.
author Thomas Wouters <thomas@python.org>
date Sat, 05 Aug 2000 21:37:50 +0000
parents f79434ee41fa
children 8eeaff96b4c2
line wrap: on
line diff
--- a/Python/compile.c	Sat Aug 05 21:29:58 2000 +0000
+++ b/Python/compile.c	Sat Aug 05 21:37:50 2000 +0000
@@ -1249,12 +1249,11 @@
 	/* 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