Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dad06a1

Browse files
committed
Remove unnecessary local variable.
1 parent 2dfcef5 commit dad06a1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Python/compile.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2701,7 +2701,7 @@ inplace_binop(struct compiler *c, operator_ty op)
27012701
static int
27022702
compiler_nameop(struct compiler *c, identifier name, expr_context_ty ctx)
27032703
{
2704-
int op, scope, r, arg;
2704+
int op, scope, arg;
27052705
enum { OP_FAST, OP_GLOBAL, OP_DEREF, OP_NAME } optype;
27062706

27072707
PyObject *dict = c->u->u_names;
@@ -2811,9 +2811,8 @@ compiler_nameop(struct compiler *c, identifier name, expr_context_ty ctx)
28112811
arg = compiler_add_o(c, dict, mangled);
28122812
if (arg < 0)
28132813
return 0;
2814-
r = compiler_addop_i(c, op, arg);
28152814
Py_DECREF(mangled);
2816-
return r;
2815+
return compiler_addop_i(c, op, arg);
28172816
}
28182817

28192818
static int

0 commit comments

Comments
 (0)