Skip to content

Commit 47f761c

Browse files
committed
gh-142873: Do not check for PyContextVar_CheckExact twice in PyContextVar_Set
1 parent 072aab6 commit 47f761c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Python/context.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,8 +1019,6 @@ static PyObject *
10191019
_contextvars_ContextVar_get_impl(PyContextVar *self, PyObject *default_value)
10201020
/*[clinic end generated code: output=0746bd0aa2ced7bf input=da66664d5d0af4ad]*/
10211021
{
1022-
ENSURE_ContextVar(self, NULL)
1023-
10241022
PyObject *val;
10251023
if (PyContextVar_Get((PyObject *)self, default_value, &val) < 0) {
10261024
return NULL;

0 commit comments

Comments
 (0)