]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43152: Update assert statement to remove unused warning (GH-24473)
authorDong-hee Na <donghee.na@python.org>
Sun, 14 Feb 2021 06:54:39 +0000 (15:54 +0900)
committerGitHub <noreply@github.com>
Sun, 14 Feb 2021 06:54:39 +0000 (15:54 +0900)
Python/ceval.c

index 3b67a6b79bfb76530509b9f81cba7c46afc10f32..9e4c2666ac6f74bd4098ddaed8c1e1617bbbbda3 100644 (file)
@@ -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;
     }