aboutsummaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2021-02-14 15:54:39 +0900
committerGitHub <noreply@github.com>2021-02-14 15:54:39 +0900
commit3cf0833f42ebde24f6435b838785ca4f946b988f (patch)
treeb20aa43c13ea70608adb028bf8cceebe82eb3607 /Python/ceval.c
parentb676f5f809007533db3e3fdd01243959dd233d57 (diff)
downloadcpython3-3cf0833f42ebde24f6435b838785ca4f946b988f.tar.gz
bpo-43152: Update assert statement to remove unused warning (GH-24473)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 3b67a6b79b..9e4c2666ac 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4744,8 +4744,7 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals,
Py_DECREF(defaults);
return NULL;
}
- PyCodeObject *code = (PyCodeObject *)_co;
- assert ((code->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == 0);
+ assert ((((PyCodeObject *)_co)->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == 0);
if (locals == NULL) {
locals = globals;
}