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

Skip to content

Commit 3cf0833

Browse files
authored
bpo-43152: Update assert statement to remove unused warning (GH-24473)
1 parent b676f5f commit 3cf0833

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Python/ceval.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4744,8 +4744,7 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals,
47444744
Py_DECREF(defaults);
47454745
return NULL;
47464746
}
4747-
PyCodeObject *code = (PyCodeObject *)_co;
4748-
assert ((code->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == 0);
4747+
assert ((((PyCodeObject *)_co)->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == 0);
47494748
if (locals == NULL) {
47504749
locals = globals;
47514750
}

0 commit comments

Comments
 (0)