File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3085,7 +3085,7 @@ dict_subscript_lock_held(PyObject *self, PyObject *key)
3085
3085
if (hash == -1 )
3086
3086
return NULL ;
3087
3087
}
3088
- #ifdef Py_GIL_DISABLEDX
3088
+ #ifdef Py_GIL_DISABLED
3089
3089
ix = _Py_dict_lookup_threadsafe (mp , key , hash , & value );
3090
3090
#else
3091
3091
ix = _Py_dict_lookup (mp , key , hash , & value );
@@ -3109,7 +3109,7 @@ dict_subscript_lock_held(PyObject *self, PyObject *key)
3109
3109
_PyErr_SetKeyError (key );
3110
3110
return NULL ;
3111
3111
}
3112
- #ifdef Py_GIL_DISABLEDX
3112
+ #ifdef Py_GIL_DISABLED
3113
3113
return value ;
3114
3114
#else
3115
3115
return Py_NewRef (value );
@@ -3120,9 +3120,7 @@ static PyObject *
3120
3120
dict_subscript (PyObject * self , PyObject * key )
3121
3121
{
3122
3122
PyObject * res ;
3123
- Py_BEGIN_CRITICAL_SECTION (self );
3124
3123
res = dict_subscript_lock_held (self , key );
3125
- Py_END_CRITICAL_SECTION ();
3126
3124
return res ;
3127
3125
}
3128
3126
You can’t perform that action at this time.
0 commit comments