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 e7f00dc

Browse filesBrowse files
committed
nit picked
1 parent 3f9bd66 commit e7f00dc
Copy full SHA for e7f00dc

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎Modules/arraymodule.c

Copy file name to clipboardExpand all lines: Modules/arraymodule.c
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3092,10 +3092,12 @@ array_arrayiterator___setstate__(arrayiterobject *self, PyObject *state)
30923092
return NULL;
30933093
arrayobject *ao = self->ao;
30943094
if (ao != NULL) {
3095-
if (index < 0)
3095+
if (index < 0) {
30963096
index = 0;
3097-
else if (index > Py_SIZE(ao))
3097+
}
3098+
else if (index > Py_SIZE(ao)) {
30983099
index = Py_SIZE(ao); /* iterator exhausted */
3100+
}
30993101
self->index = index;
31003102
}
31013103
Py_RETURN_NONE;

0 commit comments

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