Skip to content

Commit a2915d5

Browse files
committed
Two minor code tidy ups.
1 parent 6b7019a commit a2915d5

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Python/compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5882,9 +5882,9 @@ makecode(struct compiler *c, struct assembler *a, PyObject *consts)
58825882

58835883
names = dict_keys_inorder(c->u->u_names, 0);
58845884
varnames = dict_keys_inorder(c->u->u_varnames, 0);
5885-
if (!names || !varnames)
5885+
if (!names || !varnames) {
58865886
goto error;
5887-
5887+
}
58885888
cellvars = dict_keys_inorder(c->u->u_cellvars, 0);
58895889
if (!cellvars)
58905890
goto error;

Python/peephole.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66
* Optimization is now done in the compiler */
77

88
PyObject *
9-
PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
10-
PyObject *lnotab_obj)
9+
PyCode_Optimize(PyObject *code, PyObject* Py_UNUSED(consts),
10+
PyObject *Py_UNUSED(names), PyObject *Py_UNUSED(lnotab_obj))
1111
{
1212
Py_INCREF(code);
13-
(void)consts;
14-
(void)names;
15-
(void)lnotab_obj;
1613
return code;
1714
}

0 commit comments

Comments
 (0)