Commit 8c17d928 authored by Inada Naoki's avatar Inada Naoki Committed by Miss Islington (bot)

add missing break statement (GH-12147)



Bug introduced by 848037c1.
parent 45d8d246
...@@ -2363,6 +2363,8 @@ _io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence) ...@@ -2363,6 +2363,8 @@ _io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence)
cookieObj = _PyObject_CallMethodId((PyObject *)self, &PyId_tell, NULL); cookieObj = _PyObject_CallMethodId((PyObject *)self, &PyId_tell, NULL);
if (cookieObj == NULL) if (cookieObj == NULL)
goto fail; goto fail;
break;
case SEEK_END: case SEEK_END:
/* seek relative to end of file */ /* seek relative to end of file */
cmp = PyObject_RichCompareBool(cookieObj, _PyLong_Zero, Py_EQ); cmp = PyObject_RichCompareBool(cookieObj, _PyLong_Zero, Py_EQ);
...@@ -2401,8 +2403,10 @@ _io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence) ...@@ -2401,8 +2403,10 @@ _io_TextIOWrapper_seek_impl(textio *self, PyObject *cookieObj, int whence)
} }
} }
return res; return res;
case SEEK_SET: case SEEK_SET:
break; break;
default: default:
PyErr_Format(PyExc_ValueError, PyErr_Format(PyExc_ValueError,
"invalid whence (%d, should be %d, %d or %d)", whence, "invalid whence (%d, should be %d, %d or %d)", whence,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment