Skip to content

Commit 30060e5

Browse files
pythongh-125038: typo fix in previous commit
1 parent b9e2b38 commit 30060e5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5032,7 +5032,7 @@ dummy_func(
50325032
PyTypeObject *type = Py_TYPE(iterable);
50335033
if (oparg == 0) {
50345034
// Sync case, similar to GET_ITER
5035-
if (type->tp_iter == NULL || !PySequence_Check(iterable)) {
5035+
if (type->tp_iter == NULL && !PySequence_Check(iterable)) {
50365036
PyErr_Format(PyExc_TypeError,
50375037
"'%.200s' object is not iterable",
50385038
type->tp_name);

Python/executor_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)