mirror of https://github.com/python/cpython
Removed some unreachable break statements to silence SGI compiler.
This commit is contained in:
parent
34eaf86e95
commit
38b88c233a
|
@ -78,7 +78,6 @@ PyCFunction_Call(PyObject *func, PyObject *arg, PyObject *kw)
|
||||||
switch (flags) {
|
switch (flags) {
|
||||||
case METH_VARARGS:
|
case METH_VARARGS:
|
||||||
return (*meth)(self, arg);
|
return (*meth)(self, arg);
|
||||||
break;
|
|
||||||
case METH_NOARGS:
|
case METH_NOARGS:
|
||||||
if (size == 0)
|
if (size == 0)
|
||||||
return (*meth)(self, NULL);
|
return (*meth)(self, NULL);
|
||||||
|
@ -86,7 +85,6 @@ PyCFunction_Call(PyObject *func, PyObject *arg, PyObject *kw)
|
||||||
"%.200s() takes no arguments (%d given)",
|
"%.200s() takes no arguments (%d given)",
|
||||||
f->m_ml->ml_name, size);
|
f->m_ml->ml_name, size);
|
||||||
return NULL;
|
return NULL;
|
||||||
break;
|
|
||||||
case METH_O:
|
case METH_O:
|
||||||
if (size == 1)
|
if (size == 1)
|
||||||
return (*meth)(self, PyTuple_GET_ITEM(arg, 0));
|
return (*meth)(self, PyTuple_GET_ITEM(arg, 0));
|
||||||
|
@ -94,7 +92,6 @@ PyCFunction_Call(PyObject *func, PyObject *arg, PyObject *kw)
|
||||||
"%.200s() takes exactly one argument (%d given)",
|
"%.200s() takes exactly one argument (%d given)",
|
||||||
f->m_ml->ml_name, size);
|
f->m_ml->ml_name, size);
|
||||||
return NULL;
|
return NULL;
|
||||||
break;
|
|
||||||
case METH_OLDARGS:
|
case METH_OLDARGS:
|
||||||
/* the really old style */
|
/* the really old style */
|
||||||
if (size == 1)
|
if (size == 1)
|
||||||
|
|
Loading…
Reference in New Issue