summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2005-10-23 18:52:36 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2005-10-23 18:52:36 (GMT)
commitdad06a159e0f51a4fbeadfa42ed37bdb9f0caae3 (patch)
tree21213d828d17d0ed6836403b573ca1029e1e9ab3 /Python
parent2dfcef5c57f35af0e1ba200ba36508be8667001a (diff)
downloadcpython-dad06a159e0f51a4fbeadfa42ed37bdb9f0caae3.zip
cpython-dad06a159e0f51a4fbeadfa42ed37bdb9f0caae3.tar.gz
cpython-dad06a159e0f51a4fbeadfa42ed37bdb9f0caae3.tar.bz2
Remove unnecessary local variable.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/compile.c b/Python/compile.c
index fe6fd50..b43c2d7 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -2701,7 +2701,7 @@ inplace_binop(struct compiler *c, operator_ty op)
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 @@ compiler_nameop(struct compiler *c, identifier name, expr_context_ty ctx)
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