summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2021-02-14 06:54:39 (GMT)
committerGitHub <noreply@github.com>2021-02-14 06:54:39 (GMT)
commit3cf0833f42ebde24f6435b838785ca4f946b988f (patch)
treeb20aa43c13ea70608adb028bf8cceebe82eb3607
parentb676f5f809007533db3e3fdd01243959dd233d57 (diff)
downloadcpython-3cf0833f42ebde24f6435b838785ca4f946b988f.zip
cpython-3cf0833f42ebde24f6435b838785ca4f946b988f.tar.gz
cpython-3cf0833f42ebde24f6435b838785ca4f946b988f.tar.bz2
bpo-43152: Update assert statement to remove unused warning (GH-24473)
-rw-r--r--Python/ceval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 3b67a6b..9e4c266 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;
}