bpo-43152: Update assert statement to remove unused warning (GH-24473)

This commit is contained in:
Dong-hee Na 2021-02-14 15:54:39 +09:00 committed by GitHub
parent b676f5f809
commit 3cf0833f42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -4744,8 +4744,7 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals,
Py_DECREF(defaults); Py_DECREF(defaults);
return NULL; return NULL;
} }
PyCodeObject *code = (PyCodeObject *)_co; assert ((((PyCodeObject *)_co)->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == 0);
assert ((code->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == 0);
if (locals == NULL) { if (locals == NULL) {
locals = globals; locals = globals;
} }