We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc861a6 commit 45129f8Copy full SHA for 45129f8
Objects/codeobject.c
@@ -214,10 +214,8 @@ intern_constants(PyObject *tuple, int *modified)
214
if (PyUnicode_CHECK_INTERNED(v) != 0) {
215
continue;
216
}
217
- PyObject *interned;
218
Py_BEGIN_CRITICAL_SECTION(interned_dict);
219
- interned = PyDict_GetItemWithError(interned_dict, v);
220
- Py_END_CRITICAL_SECTION();
+ PyObject *interned = PyDict_GetItemWithError(interned_dict, v);
221
if (interned == NULL && PyErr_Occurred()) {
222
goto error;
223
@@ -244,6 +242,7 @@ intern_constants(PyObject *tuple, int *modified)
244
242
245
243
246
+ Py_END_CRITICAL_SECTION();
247
248
else if (PyTuple_CheckExact(v)) {
249
if (intern_constants(v, NULL) < 0) {
0 commit comments