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 098eec9

Browse filesBrowse files
[3.13] gh-118849: Fix "code will never be executed" warning in dictobject.c (GH-118850) (#118859)
gh-118849: Fix "code will never be executed" warning in `dictobject.c` (GH-118850) (cherry picked from commit 82abe75) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent 9d646d0 commit 098eec9
Copy full SHA for 098eec9

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

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.