forked from mirrors/kore
Remove unused argument.
This commit is contained in:
parent
bfd4851c85
commit
92bd546935
|
@ -345,7 +345,7 @@ static const char *pyko_init_data =
|
|||
"if port is None:\n"
|
||||
"\tport = '8888'\n"
|
||||
"\n"
|
||||
"kore.listen(ip, port, '')\n"
|
||||
"kore.listen(ip, port)\n"
|
||||
"\n"
|
||||
"def kore_worker_configure():\n"
|
||||
"\tconninfo = os.getenv('PYKO_CONNINFO')\n"
|
||||
|
|
|
@ -627,15 +627,12 @@ python_kore_log(PyObject *self, PyObject *args)
|
|||
static PyObject *
|
||||
python_kore_listen(PyObject *self, PyObject *args)
|
||||
{
|
||||
const char *ip, *port, *ccb;
|
||||
const char *ip, *port;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "sss", &ip, &port, &ccb))
|
||||
if (!PyArg_ParseTuple(args, "ss", &ip, &port))
|
||||
return (NULL);
|
||||
|
||||
if (!strcmp(ccb, ""))
|
||||
ccb = NULL;
|
||||
|
||||
if (!kore_server_bind(ip, port, ccb)) {
|
||||
if (!kore_server_bind(ip, port, NULL)) {
|
||||
PyErr_SetString(PyExc_RuntimeError, "failed to listen");
|
||||
return (NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue