]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update _PyEval_AddPendingCall comment (#95817)
authorzhanpon <pon.zhan@gmail.com>
Thu, 11 Aug 2022 11:32:52 +0000 (20:32 +0900)
committerGitHub <noreply@github.com>
Thu, 11 Aug 2022 11:32:52 +0000 (13:32 +0200)
Python/ceval.c

index abb934d494f3e956db665afa8591791dd7c6e54e..d34d6bfeec0963bc8cfcc231294c0b380ba06f5d 100644 (file)
@@ -630,8 +630,8 @@ _PyEval_AddPendingCall(PyInterpreterState *interp,
 {
     struct _pending_calls *pending = &interp->ceval.pending;
 
-    /* Ensure that _PyEval_InitPendingCalls() was called
-       and that _PyEval_FiniPendingCalls() is not called yet. */
+    /* Ensure that _PyEval_InitState() was called
+       and that _PyEval_FiniState() is not called yet. */
     assert(pending->lock != NULL);
 
     PyThread_acquire_lock(pending->lock, WAIT_LOCK);