Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 82abe75

Browse filesBrowse files
authored
gh-118849: Fix "code will never be executed" warning in dictobject.c (#118850)
1 parent 8af84b5 commit 82abe75
Copy full SHA for 82abe75

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎Objects/dictobject.c

Copy file name to clipboardExpand all lines: Objects/dictobject.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5396,6 +5396,7 @@ static int
53965396
dictiter_iternext_threadsafe(PyDictObject *d, PyObject *self,
53975397
PyObject **out_key, PyObject **out_value)
53985398
{
5399+
int res;
53995400
dictiterobject *di = (dictiterobject *)self;
54005401
Py_ssize_t i;
54015402
PyDictKeysObject *k;
@@ -5491,7 +5492,6 @@ dictiter_iternext_threadsafe(PyDictObject *d, PyObject *self,
54915492
Py_DECREF(d);
54925493
return -1;
54935494

5494-
int res;
54955495
try_locked:
54965496
Py_BEGIN_CRITICAL_SECTION(d);
54975497
res = dictiter_iternextitem_lock_held(d, self, out_key, out_value);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.