diff Python/compile.c @ 29084:ce1d7e10f49e legacy-trunk

cmp_type(): The grammar stopped allowing '=' as a comparison operator about a decade ago. Put the code still allowing for it in cmp_type() out of its lonely misery.
author Tim Peters <tim.peters@gmail.com>
date Mon, 12 May 2003 19:16:52 +0000
parents 90342f395721
children cd1c826c98a2
line wrap: on
line diff
--- a/Python/compile.c	Mon May 12 17:42:56 2003 +0000
+++ b/Python/compile.c	Mon May 12 19:16:52 2003 +0000
@@ -2368,15 +2368,14 @@
 cmp_type(node *n)
 {
 	REQ(n, comp_op);
-	/* comp_op: '<' | '>' | '=' | '>=' | '<=' | '<>' | '!=' | '=='
+	/* comp_op: '<' | '>' | '>=' | '<=' | '<>' | '!=' | '=='
 	          | 'in' | 'not' 'in' | 'is' | 'is' not' */
 	if (NCH(n) == 1) {
 		n = CHILD(n, 0);
 		switch (TYPE(n)) {
 		case LESS:	return PyCmp_LT;
 		case GREATER:	return PyCmp_GT;
-		case EQEQUAL:			/* == */
-		case EQUAL:	return PyCmp_EQ;
+		case EQEQUAL:	return PyCmp_EQ;
 		case LESSEQUAL:	return PyCmp_LE;
 		case GREATEREQUAL: return PyCmp_GE;
 		case NOTEQUAL:	return PyCmp_NE;	/* <> or != */