[Python-checkins] python/dist/src/Python compile.c,2.359,2.360

nascheme@users.sourceforge.net nascheme at users.sourceforge.net
Sun Oct 23 20:52:39 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22498/Python

Modified Files:
	compile.c 
Log Message:
Remove unnecessary local variable.


Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.359
retrieving revision 2.360
diff -u -d -r2.359 -r2.360
--- compile.c	23 Oct 2005 18:37:27 -0000	2.359
+++ compile.c	23 Oct 2005 18:52:36 -0000	2.360
@@ -2701,7 +2701,7 @@
 static int
 compiler_nameop(struct compiler *c, identifier name, expr_context_ty ctx)
 {
-	int op, scope, r, arg;
+	int op, scope, arg;
 	enum { OP_FAST, OP_GLOBAL, OP_DEREF, OP_NAME } optype;
 
         PyObject *dict = c->u->u_names;
@@ -2811,9 +2811,8 @@
 	arg = compiler_add_o(c, dict, mangled);
 	if (arg < 0)
 		return 0;
-	r = compiler_addop_i(c, op, arg);
 	Py_DECREF(mangled);
-	return r;
+	return compiler_addop_i(c, op, arg);
 }
 
 static int



More information about the Python-checkins mailing list