Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 38b88c2

Browse files
Removed some unreachable break statements to silence SGI compiler.
1 parent 34eaf86 commit 38b88c2

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Objects/methodobject.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,23 +78,20 @@ PyCFunction_Call(PyObject *func, PyObject *arg, PyObject *kw)
7878
switch (flags) {
7979
case METH_VARARGS:
8080
return (*meth)(self, arg);
81-
break;
8281
case METH_NOARGS:
8382
if (size == 0)
8483
return (*meth)(self, NULL);
8584
PyErr_Format(PyExc_TypeError,
8685
"%.200s() takes no arguments (%d given)",
8786
f->m_ml->ml_name, size);
8887
return NULL;
89-
break;
9088
case METH_O:
9189
if (size == 1)
9290
return (*meth)(self, PyTuple_GET_ITEM(arg, 0));
9391
PyErr_Format(PyExc_TypeError,
9492
"%.200s() takes exactly one argument (%d given)",
9593
f->m_ml->ml_name, size);
9694
return NULL;
97-
break;
9895
case METH_OLDARGS:
9996
/* the really old style */
10097
if (size == 1)

0 commit comments

Comments
 (0)