mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-118849: Fix "code will never be executed" warning in dictobject.c (#118850)
This commit is contained in:
parent
8af84b503d
commit
82abe75e77
1 changed files with 1 additions and 1 deletions
|
|
@ -5396,6 +5396,7 @@ static int
|
|||
dictiter_iternext_threadsafe(PyDictObject *d, PyObject *self,
|
||||
PyObject **out_key, PyObject **out_value)
|
||||
{
|
||||
int res;
|
||||
dictiterobject *di = (dictiterobject *)self;
|
||||
Py_ssize_t i;
|
||||
PyDictKeysObject *k;
|
||||
|
|
@ -5491,7 +5492,6 @@ dictiter_iternext_threadsafe(PyDictObject *d, PyObject *self,
|
|||
Py_DECREF(d);
|
||||
return -1;
|
||||
|
||||
int res;
|
||||
try_locked:
|
||||
Py_BEGIN_CRITICAL_SECTION(d);
|
||||
res = dictiter_iternextitem_lock_held(d, self, out_key, out_value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue